commit f4edc7eaa87f7d298c6babd366a2521e5c50a486 parent f56382979be4f087f4fb251faa6b82f23b3d7476 Author: Demonstrandum <moi@knutsen.co> Date: Mon, 23 Mar 2020 00:45:46 +0000 fetchUsers is deprecated. Diffstat:
M | lib/commands/summon.ts | | | 8 | ++++---- |
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/commands/summon.ts b/lib/commands/summon.ts @@ -7,8 +7,8 @@ export default (home_scope : HomeScope) => { || message.mentions.users.size === 0) return message.reply(help_info('summon', CONFIG.commands.prefix)); - message.mentions.users.first().send( - `Psssst. Hey, come over to ${message.guild.name} :point_left:\n` - + `(${message.member.user.tag} is trying to summon you).` - ); + message.client.users.fetch(message.mentions.users.first().id) + .then(user => user.send( + `Psssst. Hey, come over to ${message.guild.name} :point_left:\n` + + `(${message.member.user.tag} is trying to summon you).`)); };