mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
Use bot.get_user() instead of get_all_members() in [p]dm (#4472)
This commit is contained in:
parent
6ea2a403be
commit
804219df29
@ -2451,7 +2451,7 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):
|
||||
'Appearance' tab. Enable 'Developer Mode', then right click
|
||||
a user and click on 'Copy ID'.
|
||||
"""
|
||||
destination = discord.utils.get(ctx.bot.get_all_members(), id=user_id)
|
||||
destination = self.bot.get_user(user_id)
|
||||
if destination is None or destination.bot:
|
||||
await ctx.send(
|
||||
_(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user