From c20c4dab42a244517d49b51728f3cb9742ce274d Mon Sep 17 00:00:00 2001 From: acw0 Date: Sat, 25 Jul 2020 06:22:55 -0400 Subject: [PATCH] use Shard.GetGuild instead of Rest.GetGuild --- PluralKit.Bot/Commands/Misc.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PluralKit.Bot/Commands/Misc.cs b/PluralKit.Bot/Commands/Misc.cs index 9ca25343..3ca66bd1 100644 --- a/PluralKit.Bot/Commands/Misc.cs +++ b/PluralKit.Bot/Commands/Misc.cs @@ -105,8 +105,7 @@ namespace PluralKit.Bot { if (!ulong.TryParse(guildIdStr, out var guildId)) throw new PKSyntaxError($"Could not parse `{guildIdStr}` as an ID."); - // TODO: will this call break for sharding if you try to request a guild on a different bot instance? - guild = await ctx.Rest.GetGuild(guildId); + guild = ctx.Client.GetGuild(guildId); if (guild == null) throw Errors.GuildNotFound(guildId); }