From 773cdf835c9bf29fe4f562f9cd32ca31d493677f Mon Sep 17 00:00:00 2001 From: Daniel-I-Am Date: Thu, 4 Jun 2020 03:22:39 +0200 Subject: [PATCH] Fix some minor issues --- ChaosBot/Database/Entity/Raffle.cs | 2 ++ ChaosBot/Discord/Modules/RaffleSystem.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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());