mirror of
https://github.com/aydenjahola/discord-multipurpose-bot.git
synced 2025-04-05 19:46:24 +01:00
parent
fed3903db8
commit
51dcdc7406
1 changed files with 0 additions and 11 deletions
|
@ -14,17 +14,6 @@ module.exports = {
|
|||
isModOnly: true,
|
||||
|
||||
async execute(interaction) {
|
||||
// Check if the user has the Manage Server permission
|
||||
if (
|
||||
!interaction.member.permissions.has(PermissionsBitField.Flags.ManageGuild)
|
||||
) {
|
||||
await interaction.reply({
|
||||
content: "You do not have permission to use this command!",
|
||||
ephemeral: false,
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
const username = interaction.options.getString("username");
|
||||
await interaction.deferReply();
|
||||
|
||||
|
|
Loading…
Reference in a new issue