Use bot.get_user() instead of get_all_members() in [p]dm (#4472)

This commit is contained in:
PredaaA 2020-10-11 17:19:49 +02:00 committed by GitHub
parent 6ea2a403be
commit 804219df29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(
_(