From 6f8ee0f8bb68241d85fb71dd9d774b1e52740dee Mon Sep 17 00:00:00 2001 From: Taken Date: Mon, 9 Sep 2024 21:58:06 +0200 Subject: [PATCH] Removed deprecated method --- src/commands-contextmenu/updateuser.ts | 3 +-- src/commands/anime.ts | 3 +-- src/commands/ban.ts | 3 +-- src/commands/botinfo.ts | 3 +-- src/commands/check.ts | 3 +-- src/commands/clear.ts | 3 +-- src/commands/config.ts | 1 - src/commands/counting.ts | 3 +-- src/commands/find.ts | 3 +-- src/commands/forceunverify.ts | 1 - src/commands/forceupdate.ts | 3 +-- src/commands/forceverify.ts | 3 +-- src/commands/guild.ts | 3 +-- src/commands/help.ts | 3 +-- src/commands/instructions.ts | 3 +-- src/commands/kick.ts | 3 +-- src/commands/music.ts | 1 - src/commands/ping.ts | 3 +-- src/commands/pp.ts | 3 +-- src/commands/remove.ts | 3 +-- src/commands/reqs.ts | 3 +-- src/commands/send.ts | 3 +-- src/commands/setnick.ts | 3 +-- src/commands/setup.ts | 3 +-- src/commands/slowmode.ts | 3 +-- src/commands/staff.ts | 3 +-- src/commands/timeout.ts | 3 +-- src/commands/unban.ts | 3 +-- src/commands/update.ts | 3 +-- src/commands/uuid.ts | 3 +-- src/commands/verify.ts | 3 +-- src/commands/whoami.ts | 3 +-- src/commands/whois.ts | 3 +-- 33 files changed, 30 insertions(+), 63 deletions(-) diff --git a/src/commands-contextmenu/updateuser.ts b/src/commands-contextmenu/updateuser.ts index 205853e..bb3c13c 100644 --- a/src/commands-contextmenu/updateuser.ts +++ b/src/commands-contextmenu/updateuser.ts @@ -14,8 +14,7 @@ export default { data: new ContextMenuCommandBuilder() .setName("Update User") .setType(ApplicationCommandType.User) - .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) - .setDMPermission(false), + .setDefaultMemberPermissions(PermissionFlagsBits.Administrator), async execute({ interaction }) { await interaction.deferReply({ ephemeral: true }) diff --git a/src/commands/anime.ts b/src/commands/anime.ts index 4cf9c73..c7ac1c4 100644 --- a/src/commands/anime.ts +++ b/src/commands/anime.ts @@ -17,8 +17,7 @@ export default { .setName("query") .setDescription("The anime to search for") .setRequired(true) - ) - .setDMPermission(false), + ), async execute({ interaction }) { await interaction.deferReply() diff --git a/src/commands/ban.ts b/src/commands/ban.ts index 303bc91..6b14b51 100644 --- a/src/commands/ban.ts +++ b/src/commands/ban.ts @@ -38,8 +38,7 @@ export default { { name: "7 days", value: 7 } ) ) - .setDefaultMemberPermissions(PermissionFlagsBits.BanMembers) - .setDMPermission(false), + .setDefaultMemberPermissions(PermissionFlagsBits.BanMembers), async execute({ interaction }) { await interaction.deferReply() diff --git a/src/commands/botinfo.ts b/src/commands/botinfo.ts index 5f57c9e..4a6acda 100644 --- a/src/commands/botinfo.ts +++ b/src/commands/botinfo.ts @@ -17,8 +17,7 @@ export default { data: new SlashCommandBuilder() .setName("botinfo") - .setDescription("Get information about the bot") - .setDMPermission(false), + .setDescription("Get information about the bot"), async execute({ interaction, client }) { const castedDeps = dependencies as { [key: string]: string } diff --git a/src/commands/check.ts b/src/commands/check.ts index 7c8d607..32595d6 100644 --- a/src/commands/check.ts +++ b/src/commands/check.ts @@ -20,8 +20,7 @@ export default { .setMinLength(3) .setMaxLength(16) .setRequired(true) - ) - .setDMPermission(false), + ), async execute({ interaction }) { await interaction.deferReply({}) diff --git a/src/commands/clear.ts b/src/commands/clear.ts index 768cee0..99a5add 100644 --- a/src/commands/clear.ts +++ b/src/commands/clear.ts @@ -18,8 +18,7 @@ export default { .setDescription("Amount of messages to clear") .setRequired(true) ) - .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) - .setDMPermission(false), + .setDefaultMemberPermissions(PermissionFlagsBits.Administrator), async execute({ interaction }) { await interaction.deferReply({ ephemeral: true }) diff --git a/src/commands/config.ts b/src/commands/config.ts index ccf57b7..7b7b894 100644 --- a/src/commands/config.ts +++ b/src/commands/config.ts @@ -28,7 +28,6 @@ export default { .setDescription("The value to set") .setRequired(true) ) - .setDMPermission(false) .setDefaultMemberPermissions(PermissionFlagsBits.Administrator), async execute({ interaction }) { diff --git a/src/commands/counting.ts b/src/commands/counting.ts index c6b8333..d497a28 100644 --- a/src/commands/counting.ts +++ b/src/commands/counting.ts @@ -36,8 +36,7 @@ export default { .setRequired(true) ) ) - .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) - .setDMPermission(false), + .setDefaultMemberPermissions(PermissionFlagsBits.Administrator), async execute({ interaction }) { const subcommand = interaction.options.getSubcommand() diff --git a/src/commands/find.ts b/src/commands/find.ts index ef5320f..1bb128d 100644 --- a/src/commands/find.ts +++ b/src/commands/find.ts @@ -19,8 +19,7 @@ export default { .setDescription("The ign to lookup.") .setRequired(true) ) - .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) - .setDMPermission(false), + .setDefaultMemberPermissions(PermissionFlagsBits.Administrator), async execute({ interaction }) { await interaction.deferReply() diff --git a/src/commands/forceunverify.ts b/src/commands/forceunverify.ts index 6a3605c..ef177a2 100644 --- a/src/commands/forceunverify.ts +++ b/src/commands/forceunverify.ts @@ -21,7 +21,6 @@ export default { .setDescription("The user to force unverify") .setRequired(true) ) - .setDMPermission(false) .setDefaultMemberPermissions(PermissionFlagsBits.Administrator), async execute({ interaction }) { diff --git a/src/commands/forceupdate.ts b/src/commands/forceupdate.ts index e871aec..b961d16 100644 --- a/src/commands/forceupdate.ts +++ b/src/commands/forceupdate.ts @@ -21,8 +21,7 @@ export default { .setDescription("The user to force update") .setRequired(true) ) - .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) - .setDMPermission(false), + .setDefaultMemberPermissions(PermissionFlagsBits.Administrator), async execute({ interaction }) { await interaction.deferReply() diff --git a/src/commands/forceverify.ts b/src/commands/forceverify.ts index 6ecc1ae..70d2b7d 100644 --- a/src/commands/forceverify.ts +++ b/src/commands/forceverify.ts @@ -25,8 +25,7 @@ export default { .setName("ign") .setDescription("The user's in-game name.") ) - .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) - .setDMPermission(false), + .setDefaultMemberPermissions(PermissionFlagsBits.Administrator), async execute({ interaction }) { await interaction.deferReply() diff --git a/src/commands/guild.ts b/src/commands/guild.ts index a102d09..1cfa998 100644 --- a/src/commands/guild.ts +++ b/src/commands/guild.ts @@ -74,8 +74,7 @@ export default { .setName("amount") .setDescription("The amount of guild members to show. [Default: 10]") ) - ) - .setDMPermission(false), + ), async execute({ interaction }) { const subcommand = interaction.options.getSubcommand() diff --git a/src/commands/help.ts b/src/commands/help.ts index 3629b80..f769b8a 100644 --- a/src/commands/help.ts +++ b/src/commands/help.ts @@ -10,8 +10,7 @@ export default { data: new SlashCommandBuilder() .setName("help") - .setDescription("List's all commands usable by a member") - .setDMPermission(false), + .setDescription("List's all commands usable by a member"), async execute({ interaction, client }) { await interaction.deferReply({ ephemeral: true }) diff --git a/src/commands/instructions.ts b/src/commands/instructions.ts index c0e8612..4245127 100644 --- a/src/commands/instructions.ts +++ b/src/commands/instructions.ts @@ -11,8 +11,7 @@ export default { data: new SlashCommandBuilder() .setName("instructions") .setDescription("Instructions for verification") - .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) - .setDMPermission(false), + .setDefaultMemberPermissions(PermissionFlagsBits.Administrator), async execute({ interaction }) { await interaction.reply({ diff --git a/src/commands/kick.ts b/src/commands/kick.ts index 03aa3ea..c38c781 100644 --- a/src/commands/kick.ts +++ b/src/commands/kick.ts @@ -24,8 +24,7 @@ export default { .setName("reason") .setDescription("Reason for kicking the member.") ) - .setDefaultMemberPermissions(PermissionFlagsBits.KickMembers) - .setDMPermission(false), + .setDefaultMemberPermissions(PermissionFlagsBits.KickMembers), async execute({ interaction }) { await interaction.deferReply() diff --git a/src/commands/music.ts b/src/commands/music.ts index 7efd37f..1a1e26f 100644 --- a/src/commands/music.ts +++ b/src/commands/music.ts @@ -79,7 +79,6 @@ export default { .setName("leave") .setDescription("Leave the voice channel") ) - .setDMPermission(false) .setDefaultMemberPermissions(PermissionFlagsBits.Administrator), async execute({ interaction }) { diff --git a/src/commands/ping.ts b/src/commands/ping.ts index 3115774..b91cb72 100644 --- a/src/commands/ping.ts +++ b/src/commands/ping.ts @@ -10,8 +10,7 @@ export default { data: new SlashCommandBuilder() .setName("ping") - .setDescription("Get's the bot's ping.") - .setDMPermission(false), + .setDescription("Get's the bot's ping."), async execute({ interaction, client }) { await interaction.deferReply() diff --git a/src/commands/pp.ts b/src/commands/pp.ts index 043653b..0e548e6 100644 --- a/src/commands/pp.ts +++ b/src/commands/pp.ts @@ -17,8 +17,7 @@ export default { .setName("user") .setDescription("User to show pp size") .setRequired(false) - ) - .setDMPermission(false), + ), async execute({ interaction }) { const user = (interaction.options.getUser("user") || interaction.user) as User diff --git a/src/commands/remove.ts b/src/commands/remove.ts index 09c1afd..8889e50 100644 --- a/src/commands/remove.ts +++ b/src/commands/remove.ts @@ -26,8 +26,7 @@ export default { .setDescription("The reason for removing the user.") .setRequired(false) ) - .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) - .setDMPermission(false), + .setDefaultMemberPermissions(PermissionFlagsBits.Administrator), async execute({ interaction }) { await interaction.deferReply() diff --git a/src/commands/reqs.ts b/src/commands/reqs.ts index 46260ff..29bb980 100644 --- a/src/commands/reqs.ts +++ b/src/commands/reqs.ts @@ -11,8 +11,7 @@ export default { data: new SlashCommandBuilder() .setName("reqs") - .setDescription("Displays the requirements for the guild.") - .setDMPermission(false), + .setDescription("Displays the requirements for the guild."), async execute({ interaction }) { await interaction.reply({ diff --git a/src/commands/send.ts b/src/commands/send.ts index fc1ecb6..139a06d 100644 --- a/src/commands/send.ts +++ b/src/commands/send.ts @@ -23,8 +23,7 @@ export default { .setDescription("The channel to send the message to.") .addChannelTypes(ChannelType.GuildText, ChannelType.GuildAnnouncement) ) - .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) - .setDMPermission(false), + .setDefaultMemberPermissions(PermissionFlagsBits.Administrator), async execute({ interaction }) { await interaction.deferReply({ ephemeral: true }) diff --git a/src/commands/setnick.ts b/src/commands/setnick.ts index 7dfe691..7406e03 100644 --- a/src/commands/setnick.ts +++ b/src/commands/setnick.ts @@ -24,8 +24,7 @@ export default { .setDescription("The nickname to set") .setRequired(true) ) - .setDefaultMemberPermissions(PermissionFlagsBits.ManageNicknames) - .setDMPermission(false), + .setDefaultMemberPermissions(PermissionFlagsBits.ManageNicknames), async execute({ interaction }) { const member = interaction.options.getMember("user") as GuildMember diff --git a/src/commands/setup.ts b/src/commands/setup.ts index 8b25044..a0e8417 100644 --- a/src/commands/setup.ts +++ b/src/commands/setup.ts @@ -72,8 +72,7 @@ export default { .setRequired(true) ) ) - .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) - .setDMPermission(false), + .setDefaultMemberPermissions(PermissionFlagsBits.Administrator), async execute({ interaction }) { const subcommand = interaction.options.getSubcommand() diff --git a/src/commands/slowmode.ts b/src/commands/slowmode.ts index 9952c5a..90064ef 100644 --- a/src/commands/slowmode.ts +++ b/src/commands/slowmode.ts @@ -23,8 +23,7 @@ export default { .setDescription("The channel to set the slowmode of.") .addChannelTypes(ChannelType.GuildText, ChannelType.GuildAnnouncement) ) - .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) - .setDMPermission(false), + .setDefaultMemberPermissions(PermissionFlagsBits.Administrator), async execute({ interaction }) { await interaction.deferReply({ ephemeral: true }) diff --git a/src/commands/staff.ts b/src/commands/staff.ts index 83906a1..8ca1ce8 100644 --- a/src/commands/staff.ts +++ b/src/commands/staff.ts @@ -48,8 +48,7 @@ export default { .setName("updateall") .setDescription("Update the discord roles of all guild members") ) - .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) - .setDMPermission(false), + .setDefaultMemberPermissions(PermissionFlagsBits.Administrator), async execute({ interaction, client }) { const subcommand = interaction.options.getSubcommand() diff --git a/src/commands/timeout.ts b/src/commands/timeout.ts index 812d1f7..8a42e89 100644 --- a/src/commands/timeout.ts +++ b/src/commands/timeout.ts @@ -31,8 +31,7 @@ export default { .setName("reason") .setDescription("The reason for the timeout") ) - .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) - .setDMPermission(false), + .setDefaultMemberPermissions(PermissionFlagsBits.Administrator), async execute({ interaction }) { await interaction.deferReply() diff --git a/src/commands/unban.ts b/src/commands/unban.ts index 1d64b23..35858f4 100644 --- a/src/commands/unban.ts +++ b/src/commands/unban.ts @@ -25,8 +25,7 @@ export default { .setDescription("The reason for unbanning the user") .setRequired(false) ) - .setDefaultMemberPermissions(PermissionFlagsBits.BanMembers) - .setDMPermission(false), + .setDefaultMemberPermissions(PermissionFlagsBits.BanMembers), async execute({ interaction }) { await interaction.deferReply() diff --git a/src/commands/update.ts b/src/commands/update.ts index 748e87f..3c0c566 100644 --- a/src/commands/update.ts +++ b/src/commands/update.ts @@ -14,8 +14,7 @@ export default { data: new SlashCommandBuilder() .setName("update") - .setDescription("Update your discord roles.") - .setDMPermission(false), + .setDescription("Update your discord roles."), async execute({ interaction }) { await interaction.deferReply() diff --git a/src/commands/uuid.ts b/src/commands/uuid.ts index 2368ace..552aae1 100644 --- a/src/commands/uuid.ts +++ b/src/commands/uuid.ts @@ -19,8 +19,7 @@ export default { .setMinLength(3) .setMaxLength(16) .setRequired(true) - ) - .setDMPermission(false), + ), async execute({ interaction }) { await interaction.deferReply() diff --git a/src/commands/verify.ts b/src/commands/verify.ts index 2dc7319..392b6c4 100644 --- a/src/commands/verify.ts +++ b/src/commands/verify.ts @@ -23,8 +23,7 @@ export default { .setMinLength(3) .setMaxLength(16) .setRequired(true) - ) - .setDMPermission(false), + ), async execute({ interaction }) { await interaction.deferReply() diff --git a/src/commands/whoami.ts b/src/commands/whoami.ts index 4a50acb..24ac72d 100644 --- a/src/commands/whoami.ts +++ b/src/commands/whoami.ts @@ -12,8 +12,7 @@ export default { data: new SlashCommandBuilder() .setName("whoami") - .setDescription("Get your user info") - .setDMPermission(false), + .setDescription("Get your user info"), async execute({ interaction }) { await interaction.deferReply() diff --git a/src/commands/whois.ts b/src/commands/whois.ts index 82c5b47..9af4efe 100644 --- a/src/commands/whois.ts +++ b/src/commands/whois.ts @@ -19,8 +19,7 @@ export default { .setDescription("The user to get the ign of.") .setRequired(true) ) - .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) - .setDMPermission(false), + .setDefaultMemberPermissions(PermissionFlagsBits.Administrator), async execute({ interaction }) { await interaction.deferReply()