mirror of
https://github.com/nx-bat/discordbot-ng.git
synced 2026-09-22 02:19:09 -04:00
Check if the user exists
This commit is contained in:
@@ -95,6 +95,10 @@ export default {
|
||||
|
||||
await deferInteraction(interaction);
|
||||
|
||||
const user = await client.users.fetch(idToUse);
|
||||
|
||||
if (!user) return interaction.editReply('User not found');
|
||||
|
||||
if (subcommand == 'add') {
|
||||
const reason = interaction.options.getString('reason', true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user