diff --git a/ChaosBot/Database/Entity/Raffle.cs b/ChaosBot/Database/Entity/Raffle.cs index 443398a..9abba6c 100644 --- a/ChaosBot/Database/Entity/Raffle.cs +++ b/ChaosBot/Database/Entity/Raffle.cs @@ -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; } } } \ No newline at end of file diff --git a/ChaosBot/Discord/Modules/RaffleSystem.cs b/ChaosBot/Discord/Modules/RaffleSystem.cs index ac6d211..c8e4591 100644 --- a/ChaosBot/Discord/Modules/RaffleSystem.cs +++ b/ChaosBot/Discord/Modules/RaffleSystem.cs @@ -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());