Attempt a few extra ways to resolve users
This commit is contained in:
@@ -59,7 +59,7 @@ export default {
|
||||
|
||||
const idToUse = matches ? matches.groups!.id : discordUserInput;
|
||||
|
||||
const user = await resolveUser(client, idToUse);
|
||||
const user = await resolveUser(client, idToUse, interaction.guild);
|
||||
|
||||
if (!user) return interaction.editReply('User not found.');
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ export default {
|
||||
|
||||
await deferInteraction(interaction);
|
||||
|
||||
const user = await resolveUser(client, idToUse);
|
||||
const user = await resolveUser(client, idToUse, interaction.guild);
|
||||
|
||||
if (!user) return interaction.editReply('User not found.');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user