From 68caa1aab701e1f41a5606be2444fed92ca324b0 Mon Sep 17 00:00:00 2001 From: thomkaptein Date: Wed, 21 Jun 2023 14:09:47 +0200 Subject: [PATCH] fix blocking users in affinity --- src/FMBot.Bot/FMBot.Bot.csproj | 3 --- src/FMBot.Bot/TextCommands/LastFM/ArtistCommands.cs | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/FMBot.Bot/FMBot.Bot.csproj b/src/FMBot.Bot/FMBot.Bot.csproj index 62d374f2a..3c2d8eddc 100644 --- a/src/FMBot.Bot/FMBot.Bot.csproj +++ b/src/FMBot.Bot/FMBot.Bot.csproj @@ -70,15 +70,12 @@ - - - diff --git a/src/FMBot.Bot/TextCommands/LastFM/ArtistCommands.cs b/src/FMBot.Bot/TextCommands/LastFM/ArtistCommands.cs index c9e3d48f9..ee8878a12 100644 --- a/src/FMBot.Bot/TextCommands/LastFM/ArtistCommands.cs +++ b/src/FMBot.Bot/TextCommands/LastFM/ArtistCommands.cs @@ -597,7 +597,7 @@ public async Task AffinityAsync([Remainder] string extraOptions = null) var contextUser = await this._userService.GetUserSettingsAsync(this.Context.User); var prfx = this._prefixService.GetPrefix(this.Context.Guild?.Id); - var guild = await this._guildService.GetGuildAsync(this.Context.Guild.Id); + var guild = await this._guildService.GetGuildForWhoKnows(this.Context.Guild.Id); try {