1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-09-29 08:20:59 -04:00

disable commands in DMs

This commit is contained in:
toast-ts 2022-11-30 01:22:26 +11:00
parent e6b636f9a0
commit c81c76945a
24 changed files with 28 additions and 4 deletions

View File

@ -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?')

View File

@ -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?')

View File

@ -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?')

View File

@ -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)
}

View File

@ -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.')

View File

@ -18,4 +18,5 @@ export default {
data: new SlashCommandBuilder()
.setName('contributors')
.setDescription('List of people who contributed to the bot.')
.setDMPermission(false)
}

View File

@ -57,6 +57,7 @@ export default {
data: new SlashCommandBuilder()
.setName('eval')
.setDescription('Run code for debugging purposes')
.setDMPermission(false)
.addStringOption((opt)=>opt
.setName('code')
.setDescription('Execute your code')

View File

@ -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?')

View File

@ -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'))

View File

@ -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?')

View File

@ -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'))

View File

@ -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?')

View File

@ -9,4 +9,5 @@ export default {
data: new SlashCommandBuilder()
.setName('ping')
.setDescription('Check bot\'s latency')
.setDMPermission(false)
}

View File

@ -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')

View File

@ -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')

View File

@ -8,4 +8,5 @@ export default {
data: new SlashCommandBuilder()
.setName('restart')
.setDescription('Restart the bot for technical reasons')
.setDMPermission(false)
}

View File

@ -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')

View File

@ -8,4 +8,5 @@ export default {
data: new SlashCommandBuilder()
.setName('smell')
.setDescription('Who smells?')
.setDMPermission(false)
}

View File

@ -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?')

View File

@ -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'))

View File

@ -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')

View File

@ -20,4 +20,5 @@ export default {
data: new SlashCommandBuilder()
.setName('update')
.setDescription('Pull from repository and restart')
.setDMPermission(false)
}

View File

@ -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?')

View File

@ -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')