From 804219df2937c873871d4e7ab02963af62f3ab0c Mon Sep 17 00:00:00 2001 From: PredaaA <46051820+PredaaA@users.noreply.github.com> Date: Sun, 11 Oct 2020 17:19:49 +0200 Subject: [PATCH] Use `bot.get_user()` instead of `get_all_members()` in `[p]dm` (#4472) --- redbot/core/core_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redbot/core/core_commands.py b/redbot/core/core_commands.py index 1d5e1e25b..a9203de11 100644 --- a/redbot/core/core_commands.py +++ b/redbot/core/core_commands.py @@ -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( _(