mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-12-27 04:15:38 -05:00
disable commands in DMs
This commit is contained in:
parent
e6b636f9a0
commit
c81c76945a
@ -11,6 +11,7 @@ export default {
|
|||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
.setName('addbannedword')
|
.setName('addbannedword')
|
||||||
.setDescription('Add a word to bannedWords file')
|
.setDescription('Add a word to bannedWords file')
|
||||||
|
.setDMPermission(false)
|
||||||
.addStringOption((opt)=>opt
|
.addStringOption((opt)=>opt
|
||||||
.setName('word')
|
.setName('word')
|
||||||
.setDescription('What word do you want automod to ban?')
|
.setDescription('What word do you want automod to ban?')
|
||||||
|
@ -7,6 +7,7 @@ export default {
|
|||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
.setName('ban')
|
.setName('ban')
|
||||||
.setDescription('Ban a member from the server')
|
.setDescription('Ban a member from the server')
|
||||||
|
.setDMPermission(false)
|
||||||
.addUserOption((opt)=>opt
|
.addUserOption((opt)=>opt
|
||||||
.setName('member')
|
.setName('member')
|
||||||
.setDescription('Which member to ban?')
|
.setDescription('Which member to ban?')
|
||||||
|
@ -20,6 +20,7 @@ export default {
|
|||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
.setName('bonk')
|
.setName('bonk')
|
||||||
.setDescription('Bonk a member')
|
.setDescription('Bonk a member')
|
||||||
|
.setDMPermission(false)
|
||||||
.addUserOption((opt)=>opt
|
.addUserOption((opt)=>opt
|
||||||
.setName('member')
|
.setName('member')
|
||||||
.setDescription('Which member to bonk?')
|
.setDescription('Which member to bonk?')
|
||||||
|
@ -9,4 +9,5 @@ export default {
|
|||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
.setName('botlog')
|
.setName('botlog')
|
||||||
.setDescription('Retrieves the log from host and sends it to development server.')
|
.setDescription('Retrieves the log from host and sends it to development server.')
|
||||||
|
.setDMPermission(false)
|
||||||
}
|
}
|
@ -52,6 +52,7 @@ export default {
|
|||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
.setName('case')
|
.setName('case')
|
||||||
.setDescription('Retrieve case information or user\'s punishment history')
|
.setDescription('Retrieve case information or user\'s punishment history')
|
||||||
|
.setDMPermission(false)
|
||||||
.addSubcommand((opt)=>opt
|
.addSubcommand((opt)=>opt
|
||||||
.setName('view')
|
.setName('view')
|
||||||
.setDescription('View a single case.')
|
.setDescription('View a single case.')
|
||||||
|
@ -18,4 +18,5 @@ export default {
|
|||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
.setName('contributors')
|
.setName('contributors')
|
||||||
.setDescription('List of people who contributed to the bot.')
|
.setDescription('List of people who contributed to the bot.')
|
||||||
|
.setDMPermission(false)
|
||||||
}
|
}
|
@ -57,8 +57,9 @@ export default {
|
|||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
.setName('eval')
|
.setName('eval')
|
||||||
.setDescription('Run code for debugging purposes')
|
.setDescription('Run code for debugging purposes')
|
||||||
.addStringOption((opt)=>opt
|
.setDMPermission(false)
|
||||||
.setName('code')
|
.addStringOption((opt)=>opt
|
||||||
.setDescription('Execute your code')
|
.setName('code')
|
||||||
.setRequired(true))
|
.setDescription('Execute your code')
|
||||||
|
.setRequired(true))
|
||||||
}
|
}
|
@ -24,6 +24,7 @@ export default {
|
|||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
.setName('faq')
|
.setName('faq')
|
||||||
.setDescription('List of FAQ for users')
|
.setDescription('List of FAQ for users')
|
||||||
|
.setDMPermission(false)
|
||||||
.addStringOption((opt)=>opt
|
.addStringOption((opt)=>opt
|
||||||
.setName('question')
|
.setName('question')
|
||||||
.setDescription('What question do you want answered?')
|
.setDescription('What question do you want answered?')
|
||||||
|
@ -47,6 +47,7 @@ export default {
|
|||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
.setName('url')
|
.setName('url')
|
||||||
.setDescription('View the URL for this server\'s FSMP server or update the URL')
|
.setDescription('View the URL for this server\'s FSMP server or update the URL')
|
||||||
|
.setDMPermission(false)
|
||||||
.addStringOption((opt)=>opt
|
.addStringOption((opt)=>opt
|
||||||
.setName('address')
|
.setName('address')
|
||||||
.setDescription('Insert a \'dedicated-server-stats\' url'))
|
.setDescription('Insert a \'dedicated-server-stats\' url'))
|
||||||
|
@ -7,6 +7,7 @@ export default {
|
|||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
.setName('kick')
|
.setName('kick')
|
||||||
.setDescription('Boot a member from the server')
|
.setDescription('Boot a member from the server')
|
||||||
|
.setDMPermission(false)
|
||||||
.addUserOption((opt)=>opt
|
.addUserOption((opt)=>opt
|
||||||
.setName('member')
|
.setName('member')
|
||||||
.setDescription('Which member to kick?')
|
.setDescription('Which member to kick?')
|
||||||
|
@ -258,6 +258,7 @@ export default {
|
|||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
.setName('mp')
|
.setName('mp')
|
||||||
.setDescription('Display MP status and other things')
|
.setDescription('Display MP status and other things')
|
||||||
|
.setDMPermission(false)
|
||||||
.addSubcommand((opt)=>opt
|
.addSubcommand((opt)=>opt
|
||||||
.setName('status')
|
.setName('status')
|
||||||
.setDescription('Check server status and details'))
|
.setDescription('Check server status and details'))
|
||||||
|
@ -7,6 +7,7 @@ export default {
|
|||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
.setName('mute')
|
.setName('mute')
|
||||||
.setDescription('Mute a member')
|
.setDescription('Mute a member')
|
||||||
|
.setDMPermission(false)
|
||||||
.addUserOption((opt)=>opt
|
.addUserOption((opt)=>opt
|
||||||
.setName('member')
|
.setName('member')
|
||||||
.setDescription('Which member to mute?')
|
.setDescription('Which member to mute?')
|
||||||
|
@ -9,4 +9,5 @@ export default {
|
|||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
.setName('ping')
|
.setName('ping')
|
||||||
.setDescription('Check bot\'s latency')
|
.setDescription('Check bot\'s latency')
|
||||||
|
.setDMPermission(false)
|
||||||
}
|
}
|
@ -27,6 +27,7 @@ export default {
|
|||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
.setName('purge')
|
.setName('purge')
|
||||||
.setDescription('Purge the amount of messages in this channel')
|
.setDescription('Purge the amount of messages in this channel')
|
||||||
|
.setDMPermission(false)
|
||||||
.addIntegerOption((opt)=>opt
|
.addIntegerOption((opt)=>opt
|
||||||
.setName('amount')
|
.setName('amount')
|
||||||
.setDescription('Amount of messages to be obliterated')
|
.setDescription('Amount of messages to be obliterated')
|
||||||
|
@ -177,6 +177,7 @@ export default {
|
|||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
.setName('rank')
|
.setName('rank')
|
||||||
.setDescription('Level system')
|
.setDescription('Level system')
|
||||||
|
.setDMPermission(false)
|
||||||
.addSubcommand((optt)=>optt
|
.addSubcommand((optt)=>optt
|
||||||
.setName('view')
|
.setName('view')
|
||||||
.setDescription('View your rank or someone else\'s rank')
|
.setDescription('View your rank or someone else\'s rank')
|
||||||
|
@ -8,4 +8,5 @@ export default {
|
|||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
.setName('restart')
|
.setName('restart')
|
||||||
.setDescription('Restart the bot for technical reasons')
|
.setDescription('Restart the bot for technical reasons')
|
||||||
|
.setDMPermission(false)
|
||||||
}
|
}
|
@ -18,6 +18,7 @@ export default {
|
|||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
.setName('roleinfo')
|
.setName('roleinfo')
|
||||||
.setDescription('View information about the selected role')
|
.setDescription('View information about the selected role')
|
||||||
|
.setDMPermission(false)
|
||||||
.addRoleOption((opt)=>opt
|
.addRoleOption((opt)=>opt
|
||||||
.setName('role')
|
.setName('role')
|
||||||
.setDescription('Role name to view information')
|
.setDescription('Role name to view information')
|
||||||
|
@ -8,4 +8,5 @@ export default {
|
|||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
.setName('smell')
|
.setName('smell')
|
||||||
.setDescription('Who smells?')
|
.setDescription('Who smells?')
|
||||||
|
.setDMPermission(false)
|
||||||
}
|
}
|
@ -7,6 +7,7 @@ export default {
|
|||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
.setName('softban')
|
.setName('softban')
|
||||||
.setDescription('Softban a member from the server')
|
.setDescription('Softban a member from the server')
|
||||||
|
.setDMPermission(false)
|
||||||
.addUserOption((opt)=>opt
|
.addUserOption((opt)=>opt
|
||||||
.setName('member')
|
.setName('member')
|
||||||
.setDescription('Which member to softban?')
|
.setDescription('Which member to softban?')
|
||||||
|
@ -76,6 +76,7 @@ export default {
|
|||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
.setName('statistics')
|
.setName('statistics')
|
||||||
.setDescription('See a list of commands ordered by their usage or bot stats')
|
.setDescription('See a list of commands ordered by their usage or bot stats')
|
||||||
|
.setDMPermission(false)
|
||||||
.addSubcommand((opt)=>opt
|
.addSubcommand((opt)=>opt
|
||||||
.setName('commands')
|
.setName('commands')
|
||||||
.setDescription('View command usage stats'))
|
.setDescription('View command usage stats'))
|
||||||
|
@ -7,6 +7,7 @@ export default {
|
|||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
.setName('unpunish')
|
.setName('unpunish')
|
||||||
.setDescription('Remove the active punishment from a member')
|
.setDescription('Remove the active punishment from a member')
|
||||||
|
.setDMPermission(false)
|
||||||
.addIntegerOption((opt)=>opt
|
.addIntegerOption((opt)=>opt
|
||||||
.setName('case_id')
|
.setName('case_id')
|
||||||
.setDescription('Case # of the punishment to be overwritten')
|
.setDescription('Case # of the punishment to be overwritten')
|
||||||
|
@ -20,4 +20,5 @@ export default {
|
|||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
.setName('update')
|
.setName('update')
|
||||||
.setDescription('Pull from repository and restart')
|
.setDescription('Pull from repository and restart')
|
||||||
|
.setDMPermission(false)
|
||||||
}
|
}
|
@ -7,6 +7,7 @@ export default {
|
|||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
.setName('warn')
|
.setName('warn')
|
||||||
.setDescription('Warn a member')
|
.setDescription('Warn a member')
|
||||||
|
.setDMPermission(false)
|
||||||
.addUserOption((opt)=>opt
|
.addUserOption((opt)=>opt
|
||||||
.setName('member')
|
.setName('member')
|
||||||
.setDescription('Which member to warn?')
|
.setDescription('Which member to warn?')
|
||||||
|
@ -53,6 +53,7 @@ export default {
|
|||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
.setName('whois')
|
.setName('whois')
|
||||||
.setDescription('View your own or someone else\'s information')
|
.setDescription('View your own or someone else\'s information')
|
||||||
|
.setDMPermission(false)
|
||||||
.addUserOption((opt)=>opt
|
.addUserOption((opt)=>opt
|
||||||
.setName('member')
|
.setName('member')
|
||||||
.setDescription('Member or user to view their information')
|
.setDescription('Member or user to view their information')
|
||||||
|
Loading…
Reference in New Issue
Block a user