Add a server requirement to the userinfo context command
diff --git a/src/context/users/userinfo.ts b/src/context/users/userinfo.ts
index e6af836..a02766f 100644
--- a/src/context/users/userinfo.ts
+++ b/src/context/users/userinfo.ts
@@ -10,7 +10,9 @@
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;
};