From 37e68fc4d3f8a72fc3c0b86a31589eaa16c382cc Mon Sep 17 00:00:00 2001 From: AnxietyisReal <96593068+AnxietyisReal@users.noreply.github.com> Date: Mon, 9 Jan 2023 23:05:14 +1100 Subject: [PATCH] Remove unneeded field from builder as bot isn't global. --- src/commands/ban.ts | 1 - src/commands/bannedWords.ts | 1 - src/commands/bonk.ts | 1 - src/commands/case.ts | 1 - src/commands/contributors.ts | 1 - src/commands/dev.ts | 1 - src/commands/faq.ts | 1 - src/commands/fsurl.ts | 1 - src/commands/kick.ts | 1 - src/commands/mp.ts | 1 - src/commands/mute.ts | 1 - src/commands/ping.ts | 1 - src/commands/purge.ts | 1 - src/commands/rank.ts | 1 - src/commands/roleinfo.ts | 1 - src/commands/softban.ts | 1 - src/commands/statistics.ts | 1 - src/commands/unpunish.ts | 1 - src/commands/warn.ts | 1 - src/commands/whois.ts | 1 - 20 files changed, 20 deletions(-) diff --git a/src/commands/ban.ts b/src/commands/ban.ts index ebdd598..896300d 100644 --- a/src/commands/ban.ts +++ b/src/commands/ban.ts @@ -7,7 +7,6 @@ export default { data: new SlashCommandBuilder() .setName('ban') .setDescription('Ban a member from the server') - .setDMPermission(false) .addUserOption((opt)=>opt .setName('member') .setDescription('Which member to ban?') diff --git a/src/commands/bannedWords.ts b/src/commands/bannedWords.ts index 29b1353..e1f632e 100644 --- a/src/commands/bannedWords.ts +++ b/src/commands/bannedWords.ts @@ -23,7 +23,6 @@ export default { data: new SlashCommandBuilder() .setName('bannedwords') .setDescription('description placeholder') - .setDMPermission(false) .addSubcommand((opt)=>opt .setName('view') .setDescription('View the list of currently banned words.')) diff --git a/src/commands/bonk.ts b/src/commands/bonk.ts index a314b6f..d835355 100644 --- a/src/commands/bonk.ts +++ b/src/commands/bonk.ts @@ -20,7 +20,6 @@ export default { data: new SlashCommandBuilder() .setName('bonk') .setDescription('Bonk a member') - .setDMPermission(false) .addUserOption((opt)=>opt .setName('member') .setDescription('Which member to bonk?') diff --git a/src/commands/case.ts b/src/commands/case.ts index b0383c6..2f9e921 100644 --- a/src/commands/case.ts +++ b/src/commands/case.ts @@ -52,7 +52,6 @@ export default { data: new SlashCommandBuilder() .setName('case') .setDescription('Retrieve case information or user\'s punishment history') - .setDMPermission(false) .addSubcommand((opt)=>opt .setName('view') .setDescription('View a single case.') diff --git a/src/commands/contributors.ts b/src/commands/contributors.ts index d9688bb..563f5a7 100644 --- a/src/commands/contributors.ts +++ b/src/commands/contributors.ts @@ -18,5 +18,4 @@ export default { data: new SlashCommandBuilder() .setName('contributors') .setDescription('List of people who contributed to the bot.') - .setDMPermission(false) } \ No newline at end of file diff --git a/src/commands/dev.ts b/src/commands/dev.ts index 4459d2a..2e101ea 100644 --- a/src/commands/dev.ts +++ b/src/commands/dev.ts @@ -82,7 +82,6 @@ export default { data: new SlashCommandBuilder() .setName('dev') .setDescription('Developer commands') - .setDMPermission(false) .addSubcommand((optt)=>optt .setName('eval') .setDescription('Execute the code to the bot') diff --git a/src/commands/faq.ts b/src/commands/faq.ts index 5525724..f5a57a0 100644 --- a/src/commands/faq.ts +++ b/src/commands/faq.ts @@ -24,7 +24,6 @@ export default { data: new SlashCommandBuilder() .setName('faq') .setDescription('List of FAQ for users') - .setDMPermission(false) .addStringOption((opt)=>opt .setName('question') .setDescription('What question do you want answered?') diff --git a/src/commands/fsurl.ts b/src/commands/fsurl.ts index 0cfb605..4532cf6 100644 --- a/src/commands/fsurl.ts +++ b/src/commands/fsurl.ts @@ -47,7 +47,6 @@ export default { data: new SlashCommandBuilder() .setName('url') .setDescription('View the URL for this server\'s FSMP server or update the URL') - .setDMPermission(false) .addStringOption((opt)=>opt .setName('address') .setDescription('Insert a \'dedicated-server-stats\' url')) diff --git a/src/commands/kick.ts b/src/commands/kick.ts index e0580b7..10de051 100644 --- a/src/commands/kick.ts +++ b/src/commands/kick.ts @@ -7,7 +7,6 @@ export default { data: new SlashCommandBuilder() .setName('kick') .setDescription('Boot a member from the server') - .setDMPermission(false) .addUserOption((opt)=>opt .setName('member') .setDescription('Which member to kick?') diff --git a/src/commands/mp.ts b/src/commands/mp.ts index 1e9a739..854c865 100644 --- a/src/commands/mp.ts +++ b/src/commands/mp.ts @@ -260,7 +260,6 @@ export default { data: new SlashCommandBuilder() .setName('mp') .setDescription('Display MP status and other things') - .setDMPermission(false) .addSubcommand((opt)=>opt .setName('status') .setDescription('Check server status and details')) diff --git a/src/commands/mute.ts b/src/commands/mute.ts index 85a9c9f..693ef1b 100644 --- a/src/commands/mute.ts +++ b/src/commands/mute.ts @@ -7,7 +7,6 @@ export default { data: new SlashCommandBuilder() .setName('mute') .setDescription('Mute a member') - .setDMPermission(false) .addUserOption((opt)=>opt .setName('member') .setDescription('Which member to mute?') diff --git a/src/commands/ping.ts b/src/commands/ping.ts index fdbdfaf..4f5ffee 100644 --- a/src/commands/ping.ts +++ b/src/commands/ping.ts @@ -9,5 +9,4 @@ export default { data: new SlashCommandBuilder() .setName('ping') .setDescription('Check bot\'s latency') - .setDMPermission(false) } \ No newline at end of file diff --git a/src/commands/purge.ts b/src/commands/purge.ts index a392b20..3198e74 100644 --- a/src/commands/purge.ts +++ b/src/commands/purge.ts @@ -27,7 +27,6 @@ export default { data: new SlashCommandBuilder() .setName('purge') .setDescription('Purge the amount of messages in this channel') - .setDMPermission(false) .addIntegerOption((opt)=>opt .setName('amount') .setDescription('Amount of messages to be obliterated') diff --git a/src/commands/rank.ts b/src/commands/rank.ts index 8f52cda..d757adb 100644 --- a/src/commands/rank.ts +++ b/src/commands/rank.ts @@ -178,7 +178,6 @@ export default { data: new SlashCommandBuilder() .setName('rank') .setDescription('Level system') - .setDMPermission(false) .addSubcommand((optt)=>optt .setName('view') .setDescription('View your rank or someone else\'s rank') diff --git a/src/commands/roleinfo.ts b/src/commands/roleinfo.ts index a28b7f1..abd6359 100644 --- a/src/commands/roleinfo.ts +++ b/src/commands/roleinfo.ts @@ -18,7 +18,6 @@ export default { data: new SlashCommandBuilder() .setName('roleinfo') .setDescription('View information about the selected role') - .setDMPermission(false) .addRoleOption((opt)=>opt .setName('role') .setDescription('Role name to view information') diff --git a/src/commands/softban.ts b/src/commands/softban.ts index f5b9634..ca8dbd4 100644 --- a/src/commands/softban.ts +++ b/src/commands/softban.ts @@ -7,7 +7,6 @@ export default { data: new SlashCommandBuilder() .setName('softban') .setDescription('Softban a member from the server') - .setDMPermission(false) .addUserOption((opt)=>opt .setName('member') .setDescription('Which member to softban?') diff --git a/src/commands/statistics.ts b/src/commands/statistics.ts index 9818d84..167fde6 100644 --- a/src/commands/statistics.ts +++ b/src/commands/statistics.ts @@ -71,5 +71,4 @@ export default { data: new SlashCommandBuilder() .setName('statistics') .setDescription('See a list of commands ordered by their usage or bot stats') - .setDMPermission(false) } \ No newline at end of file diff --git a/src/commands/unpunish.ts b/src/commands/unpunish.ts index f0b0b73..315219f 100644 --- a/src/commands/unpunish.ts +++ b/src/commands/unpunish.ts @@ -7,7 +7,6 @@ export default { data: new SlashCommandBuilder() .setName('unpunish') .setDescription('Remove the active punishment from a member') - .setDMPermission(false) .addIntegerOption((opt)=>opt .setName('case_id') .setDescription('Case # of the punishment to be overwritten') diff --git a/src/commands/warn.ts b/src/commands/warn.ts index 500f5ba..fac443a 100644 --- a/src/commands/warn.ts +++ b/src/commands/warn.ts @@ -7,7 +7,6 @@ export default { data: new SlashCommandBuilder() .setName('warn') .setDescription('Warn a member') - .setDMPermission(false) .addUserOption((opt)=>opt .setName('member') .setDescription('Which member to warn?') diff --git a/src/commands/whois.ts b/src/commands/whois.ts index 67a90a7..b64931f 100644 --- a/src/commands/whois.ts +++ b/src/commands/whois.ts @@ -53,7 +53,6 @@ export default { data: new SlashCommandBuilder() .setName('whois') .setDescription('View your own or someone else\'s information') - .setDMPermission(false) .addUserOption((opt)=>opt .setName('member') .setDescription('Member or user to view their information')