mirror of
https://github.com/RPCS3/discord-bot.git
synced 2024-12-03 16:32:37 +00:00
fix issues with some commands that tried to resolve guild member in DMs
This commit is contained in:
parent
acc53b908a
commit
8961f23bfc
@ -16,6 +16,8 @@ namespace CompatBot.Utils
|
||||
{
|
||||
public static DiscordMember GetMember(this DiscordClient client, DiscordGuild guild, ulong userId)
|
||||
{
|
||||
if (guild == null)
|
||||
return GetMember(client, userId);
|
||||
return (from g in client.Guilds
|
||||
where g.Key == guild.Id
|
||||
from u in g.Value.Members
|
||||
|
Loading…
Reference in New Issue
Block a user