23 |
new SlashCommandBuilder().setName('help').setDescription('A short documentation about the commands') |
new SlashCommandBuilder().setName('help').setDescription('A short documentation about the commands') |
24 |
.addStringOption(option => option.setName('command').setDescription("The command")), |
.addStringOption(option => option.setName('command').setDescription("The command")), |
25 |
new SlashCommandBuilder().setName('about').setDescription('Show information about the bot'), |
new SlashCommandBuilder().setName('about').setDescription('Show information about the bot'), |
26 |
|
new SlashCommandBuilder().setName('eval').setDescription('Execute raw code in the runtime environment') |
27 |
|
.addStringOption(option => option.setName('code').setDescription('The code to be executed').setRequired(true)), |
28 |
new SlashCommandBuilder().setName('system').setDescription('Show the system status'), |
new SlashCommandBuilder().setName('system').setDescription('Show the system status'), |
29 |
new SlashCommandBuilder().setName('restart').setDescription('Restart the system'), |
new SlashCommandBuilder().setName('restart').setDescription('Restart the system'), |
30 |
new SlashCommandBuilder().setName('setstatus').setDescription('Set status for the bot system') |
new SlashCommandBuilder().setName('setstatus').setDescription('Set status for the bot system') |
90 |
.setDescription('Get information/stats about a ballot') |
.setDescription('Get information/stats about a ballot') |
91 |
.addIntegerOption(option => option.setName('id').setDescription('The ballot ID'))), |
.addIntegerOption(option => option.setName('id').setDescription('The ballot ID'))), |
92 |
|
|
93 |
|
new SlashCommandBuilder().setName('embed').setDescription('Make an embed') |
94 |
|
.addSubcommand(subcmd => |
95 |
|
subcmd.setName("send").setDescription("Make and send an embed") |
96 |
|
.addStringOption(option => option.setName('author_name').setDescription('The embed author name')) |
97 |
|
.addStringOption(option => option.setName('author_iconurl').setDescription('The embed author icon URL')) |
98 |
|
.addStringOption(option => option.setName('title').setDescription('The embed title')) |
99 |
|
.addStringOption(option => option.setName('description').setDescription('The embed description')) |
100 |
|
.addStringOption(option => option.setName('thumbnail').setDescription('The embed thumbnail URL')) |
101 |
|
.addStringOption(option => option.setName('image').setDescription('The embed image attachment URL')) |
102 |
|
.addStringOption(option => option.setName('video').setDescription('The embed video attachment URL')) |
103 |
|
.addStringOption(option => option.setName('footer_text').setDescription('The embed footer text')) |
104 |
|
.addStringOption(option => option.setName('footer_iconurl').setDescription('The embed footer icon URL')) |
105 |
|
.addStringOption(option => option.setName('timestamp').setDescription('The embed timestamp, use \'current\' to set current date')) |
106 |
|
.addStringOption(option => option.setName('color').setDescription('The embed color (default is #007bff)')) |
107 |
|
.addStringOption(option => option.setName('url').setDescription('The embed URL')) |
108 |
|
.addStringOption(option => option.setName('fields').setDescription('The embed fields, should be in `Field 1: Value 1, Field 2: Value 2` format')) |
109 |
|
) |
110 |
|
.addSubcommand(subcmd => |
111 |
|
subcmd.setName("schema").setDescription("Make and send an embed schema representation") |
112 |
|
.addStringOption(option => option.setName('author_name').setDescription('The embed author name')) |
113 |
|
.addStringOption(option => option.setName('author_iconurl').setDescription('The embed author icon URL')) |
114 |
|
.addStringOption(option => option.setName('title').setDescription('The embed title')) |
115 |
|
.addStringOption(option => option.setName('description').setDescription('The embed description')) |
116 |
|
.addStringOption(option => option.setName('thumbnail').setDescription('The embed thumbnail URL')) |
117 |
|
.addStringOption(option => option.setName('image').setDescription('The embed image attachment URL')) |
118 |
|
.addStringOption(option => option.setName('video').setDescription('The embed video attachment URL')) |
119 |
|
.addStringOption(option => option.setName('footer_text').setDescription('The embed footer text')) |
120 |
|
.addStringOption(option => option.setName('footer_iconurl').setDescription('The embed footer icon URL')) |
121 |
|
.addStringOption(option => option.setName('timestamp').setDescription('The embed timestamp, use \'current\' to set current date')) |
122 |
|
.addStringOption(option => option.setName('color').setDescription('The embed color (default is #007bff)')) |
123 |
|
.addStringOption(option => option.setName('url').setDescription('The embed URL')) |
124 |
|
.addStringOption(option => option.setName('fields').setDescription('The embed fields, should be in `Field 1: Value 1, Field 2: Value 2` format')) |
125 |
|
) |
126 |
|
.addSubcommand(subcmd => |
127 |
|
subcmd.setName("build").setDescription("Build an embed from schema") |
128 |
|
.addStringOption(option => option.setName('json_schema').setDescription('The embed JSON schema')) |
129 |
|
), |
130 |
|
|
131 |
new SlashCommandBuilder().setName('queues').setDescription('List all queued jobs'), |
new SlashCommandBuilder().setName('queues').setDescription('List all queued jobs'), |
132 |
|
|
133 |
new SlashCommandBuilder().setName('schedule').setDescription('Schedule a message for sending later') |
new SlashCommandBuilder().setName('schedule').setDescription('Schedule a message for sending later') |
210 |
new SlashCommandBuilder().setName('afk').setDescription('Set your AFK status') |
new SlashCommandBuilder().setName('afk').setDescription('Set your AFK status') |
211 |
.addStringOption(option => option.setName('reason').setDescription("The reason for going AFK")), |
.addStringOption(option => option.setName('reason').setDescription("The reason for going AFK")), |
212 |
|
|
213 |
|
new SlashCommandBuilder().setName('hash').setDescription('Generate hash for a string (text) data') |
214 |
|
.addStringOption(option => option.setName('content').setDescription("The content to be hashed").setRequired(true)) |
215 |
|
.addStringOption(option => |
216 |
|
option |
217 |
|
.setName('algorithm') |
218 |
|
.setDescription("Hash algorithm") |
219 |
|
.setChoices( |
220 |
|
{ |
221 |
|
name: 'SHA1', |
222 |
|
value: 'sha1' |
223 |
|
}, |
224 |
|
{ |
225 |
|
name: 'SHA256', |
226 |
|
value: 'sha256' |
227 |
|
}, |
228 |
|
{ |
229 |
|
name: 'SHA512', |
230 |
|
value: 'sha512' |
231 |
|
}, |
232 |
|
{ |
233 |
|
name: 'MD5', |
234 |
|
value: 'md5' |
235 |
|
}, |
236 |
|
) |
237 |
|
) |
238 |
|
.addStringOption(option => |
239 |
|
option |
240 |
|
.setName('digest') |
241 |
|
.setDescription("Digest mode") |
242 |
|
.setChoices( |
243 |
|
{ |
244 |
|
name: 'HEX', |
245 |
|
value: 'hex' |
246 |
|
}, |
247 |
|
{ |
248 |
|
name: 'Base64', |
249 |
|
value: 'base64' |
250 |
|
}, |
251 |
|
{ |
252 |
|
name: 'Base64 URL', |
253 |
|
value: 'base64url' |
254 |
|
}, |
255 |
|
) |
256 |
|
), |
257 |
|
|
258 |
new SlashCommandBuilder().setName('announce').setDescription('Announce something') |
new SlashCommandBuilder().setName('announce').setDescription('Announce something') |
259 |
.addStringOption(option => option.setName('content').setDescription("The announcemnt message content")), |
.addStringOption(option => option.setName('content').setDescription("The announcemnt message content")), |
260 |
|
|
261 |
// MODERATION |
// MODERATION |
262 |
|
new SlashCommandBuilder().setName('antijoin').setDescription('Enable antijoin system which will kick any new users joining the server'), |
263 |
|
|
264 |
new SlashCommandBuilder().setName('ban').setDescription('Ban a user') |
new SlashCommandBuilder().setName('ban').setDescription('Ban a user') |
265 |
.addUserOption(option => option.setName('user').setDescription("The user").setRequired(true)) |
.addUserOption(option => option.setName('user').setDescription("The user").setRequired(true)) |
266 |
.addStringOption(option => option.setName('reason').setDescription("The reason for banning this user")) |
.addStringOption(option => option.setName('reason').setDescription("The reason for banning this user")) |
369 |
]).setRequired(true)), |
]).setRequired(true)), |
370 |
|
|
371 |
new SlashCommandBuilder().setName('lockall').setDescription('Lock multiple channels') |
new SlashCommandBuilder().setName('lockall').setDescription('Lock multiple channels') |
372 |
.addStringOption(option => option.setName('channels').setDescription("The channels, must be separated by spaces").setRequired(true)) |
.addStringOption(option => option.setName('channels').setDescription("The channels, must be separated by spaces")) |
373 |
.addRoleOption(option => option.setName('role').setDescription("Lock channels for the given role. Default is @everyone")) |
.addRoleOption(option => option.setName('role').setDescription("Lock channels for the given role. Default is @everyone")) |
374 |
.addBooleanOption(option => option.setName('raid').setDescription("The raid protected channels will be locked. Default is `false`")), |
.addBooleanOption(option => option.setName('raid').setDescription("The raid protected channels will be locked. Default is `false`")), |
375 |
|
|
376 |
new SlashCommandBuilder().setName('unlockall').setDescription('Unlock multiple channels') |
new SlashCommandBuilder().setName('unlockall').setDescription('Unlock multiple channels') |
377 |
.addStringOption(option => option.setName('channels').setDescription("The channels, must be separated by spaces").setRequired(true)) |
.addStringOption(option => option.setName('channels').setDescription("The channels, must be separated by spaces")) |
378 |
.addRoleOption(option => option.setName('role').setDescription("Unlock channels for the given role. Default is @everyone")) |
.addRoleOption(option => option.setName('role').setDescription("Unlock channels for the given role. Default is @everyone")) |
379 |
.addBooleanOption(option => option.setName('force').setDescription("Force set the channel permissions to `true`")) |
.addBooleanOption(option => option.setName('force').setDescription("Force set the channel permissions to `true`")) |
380 |
.addBooleanOption(option => option.setName('raid').setDescription("The raid protected channels will be unlocked. Default is `false`")), |
.addBooleanOption(option => option.setName('raid').setDescription("The raid protected channels will be unlocked. Default is `false`")), |