diff --git a/src/commands/addBannedWord.ts b/src/commands/addBannedWord.ts index 88c71a4..b150b6c 100644 --- a/src/commands/addBannedWord.ts +++ b/src/commands/addBannedWord.ts @@ -11,6 +11,7 @@ export default { data: new SlashCommandBuilder() .setName('addbannedword') .setDescription('Add a word to bannedWords file') + .setDMPermission(false) .addStringOption((opt)=>opt .setName('word') .setDescription('What word do you want automod to ban?') diff --git a/src/commands/ban.ts b/src/commands/ban.ts index 896300d..ebdd598 100644 --- a/src/commands/ban.ts +++ b/src/commands/ban.ts @@ -7,6 +7,7 @@ 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/bonk.ts b/src/commands/bonk.ts index d835355..a314b6f 100644 --- a/src/commands/bonk.ts +++ b/src/commands/bonk.ts @@ -20,6 +20,7 @@ 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/botlog.ts b/src/commands/botlog.ts index 7240158..c95afb5 100644 --- a/src/commands/botlog.ts +++ b/src/commands/botlog.ts @@ -9,4 +9,5 @@ export default { data: new SlashCommandBuilder() .setName('botlog') .setDescription('Retrieves the log from host and sends it to development server.') + .setDMPermission(false) } \ No newline at end of file diff --git a/src/commands/case.ts b/src/commands/case.ts index 2f9e921..b0383c6 100644 --- a/src/commands/case.ts +++ b/src/commands/case.ts @@ -52,6 +52,7 @@ 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 563f5a7..d9688bb 100644 --- a/src/commands/contributors.ts +++ b/src/commands/contributors.ts @@ -18,4 +18,5 @@ 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/eval.ts b/src/commands/eval.ts index e9104fe..29f7206 100644 --- a/src/commands/eval.ts +++ b/src/commands/eval.ts @@ -57,8 +57,9 @@ export default { data: new SlashCommandBuilder() .setName('eval') .setDescription('Run code for debugging purposes') - .addStringOption((opt)=>opt - .setName('code') - .setDescription('Execute your code') - .setRequired(true)) + .setDMPermission(false) + .addStringOption((opt)=>opt + .setName('code') + .setDescription('Execute your code') + .setRequired(true)) } \ No newline at end of file diff --git a/src/commands/faq.ts b/src/commands/faq.ts index dcb9c86..2a3dd83 100644 --- a/src/commands/faq.ts +++ b/src/commands/faq.ts @@ -24,6 +24,7 @@ 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 4532cf6..0cfb605 100644 --- a/src/commands/fsurl.ts +++ b/src/commands/fsurl.ts @@ -47,6 +47,7 @@ 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 10de051..e0580b7 100644 --- a/src/commands/kick.ts +++ b/src/commands/kick.ts @@ -7,6 +7,7 @@ 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 7f33777..efd7477 100644 --- a/src/commands/mp.ts +++ b/src/commands/mp.ts @@ -258,6 +258,7 @@ 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 693ef1b..85a9c9f 100644 --- a/src/commands/mute.ts +++ b/src/commands/mute.ts @@ -7,6 +7,7 @@ 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 506517b..b6bba5b 100644 --- a/src/commands/ping.ts +++ b/src/commands/ping.ts @@ -9,4 +9,5 @@ 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 5723901..f3b99aa 100644 --- a/src/commands/purge.ts +++ b/src/commands/purge.ts @@ -27,6 +27,7 @@ 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 89e37d5..e923bd2 100644 --- a/src/commands/rank.ts +++ b/src/commands/rank.ts @@ -177,6 +177,7 @@ 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/restart.ts b/src/commands/restart.ts index fd97131..2f35a6f 100644 --- a/src/commands/restart.ts +++ b/src/commands/restart.ts @@ -8,4 +8,5 @@ export default { data: new SlashCommandBuilder() .setName('restart') .setDescription('Restart the bot for technical reasons') + .setDMPermission(false) } \ No newline at end of file diff --git a/src/commands/roleinfo.ts b/src/commands/roleinfo.ts index abd6359..a28b7f1 100644 --- a/src/commands/roleinfo.ts +++ b/src/commands/roleinfo.ts @@ -18,6 +18,7 @@ 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/smell.ts b/src/commands/smell.ts index d932b6c..6a1c1d9 100644 --- a/src/commands/smell.ts +++ b/src/commands/smell.ts @@ -8,4 +8,5 @@ export default { data: new SlashCommandBuilder() .setName('smell') .setDescription('Who smells?') + .setDMPermission(false) } \ No newline at end of file diff --git a/src/commands/softban.ts b/src/commands/softban.ts index ca8dbd4..f5b9634 100644 --- a/src/commands/softban.ts +++ b/src/commands/softban.ts @@ -7,6 +7,7 @@ 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 a818cd7..5ab4c4b 100644 --- a/src/commands/statistics.ts +++ b/src/commands/statistics.ts @@ -76,6 +76,7 @@ export default { data: new SlashCommandBuilder() .setName('statistics') .setDescription('See a list of commands ordered by their usage or bot stats') + .setDMPermission(false) .addSubcommand((opt)=>opt .setName('commands') .setDescription('View command usage stats')) diff --git a/src/commands/unpunish.ts b/src/commands/unpunish.ts index 315219f..f0b0b73 100644 --- a/src/commands/unpunish.ts +++ b/src/commands/unpunish.ts @@ -7,6 +7,7 @@ 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/update.ts b/src/commands/update.ts index 97840f1..7032b55 100644 --- a/src/commands/update.ts +++ b/src/commands/update.ts @@ -20,4 +20,5 @@ export default { data: new SlashCommandBuilder() .setName('update') .setDescription('Pull from repository and restart') + .setDMPermission(false) } \ No newline at end of file diff --git a/src/commands/warn.ts b/src/commands/warn.ts index fac443a..500f5ba 100644 --- a/src/commands/warn.ts +++ b/src/commands/warn.ts @@ -7,6 +7,7 @@ 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 b64931f..67a90a7 100644 --- a/src/commands/whois.ts +++ b/src/commands/whois.ts @@ -53,6 +53,7 @@ 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')