Fix some minor issues

This commit is contained in:
Daniel_I_Am 2020-06-04 03:22:39 +02:00
parent 0354224f46
commit 773cdf835c
No known key found for this signature in database
GPG Key ID: 80C428FCC9743E84
2 changed files with 3 additions and 1 deletions

View File

@ -10,11 +10,13 @@ namespace ChaosBot.Database.Entity
{
this.id = id;
this.userId = userId;
this.guildId = guildId;
}
public Raffle(string userId, string guildId)
{
this.userId = userId;
this.guildId = guildId;
}
}
}

View File

@ -164,7 +164,7 @@ namespace ChaosBot.Discord.Modules
private void ClearRaffle(StringBuilder sb, bool noOutput = false)
{
int removed = RaffleRepository.Count();
int removed = RaffleRepository.Count(Context.Guild.Id.ToString());
RaffleRepository.ClearRaffle(Context.Guild.Id.ToString());