Add a server requirement to the userinfo context command

pull/85/head
Skyler Grey 3 years ago
parent ecab41bdf6
commit 789e2fde63
Signed by: Minion3665
GPG Key ID: 1AFD10256B3C714D

@ -10,7 +10,9 @@ const callback = async (interaction: UserContextMenuCommandInteraction) => {
await userAbout(guild, member as GuildMember, interaction);
};
const check = async (_interaction: UserContextMenuCommandInteraction) => {
const check = async (interaction: UserContextMenuCommandInteraction) => {
if (!interaction.inGuild()) return "You must be in a server to use this command.";
return true;
};

Loading…
Cancel
Save