208 |
new SlashCommandBuilder().setName('afk').setDescription('Set your AFK status') |
new SlashCommandBuilder().setName('afk').setDescription('Set your AFK status') |
209 |
.addStringOption(option => option.setName('reason').setDescription("The reason for going AFK")), |
.addStringOption(option => option.setName('reason').setDescription("The reason for going AFK")), |
210 |
|
|
211 |
|
new SlashCommandBuilder().setName('hash').setDescription('Generate hash for a string (text) data') |
212 |
|
.addStringOption(option => option.setName('content').setDescription("The content to be hashed").setRequired(true)) |
213 |
|
.addStringOption(option => |
214 |
|
option |
215 |
|
.setName('algorithm') |
216 |
|
.setDescription("Hash algorithm") |
217 |
|
.setChoices( |
218 |
|
{ |
219 |
|
name: 'SHA1', |
220 |
|
value: 'sha1' |
221 |
|
}, |
222 |
|
{ |
223 |
|
name: 'SHA256', |
224 |
|
value: 'sha256' |
225 |
|
}, |
226 |
|
{ |
227 |
|
name: 'SHA512', |
228 |
|
value: 'sha512' |
229 |
|
}, |
230 |
|
{ |
231 |
|
name: 'MD5', |
232 |
|
value: 'md5' |
233 |
|
}, |
234 |
|
) |
235 |
|
) |
236 |
|
.addStringOption(option => |
237 |
|
option |
238 |
|
.setName('digest') |
239 |
|
.setDescription("Digest mode") |
240 |
|
.setChoices( |
241 |
|
{ |
242 |
|
name: 'HEX', |
243 |
|
value: 'hex' |
244 |
|
}, |
245 |
|
{ |
246 |
|
name: 'Base64', |
247 |
|
value: 'base64' |
248 |
|
}, |
249 |
|
{ |
250 |
|
name: 'Base64 URL', |
251 |
|
value: 'base64url' |
252 |
|
}, |
253 |
|
) |
254 |
|
), |
255 |
|
|
256 |
new SlashCommandBuilder().setName('announce').setDescription('Announce something') |
new SlashCommandBuilder().setName('announce').setDescription('Announce something') |
257 |
.addStringOption(option => option.setName('content').setDescription("The announcemnt message content")), |
.addStringOption(option => option.setName('content').setDescription("The announcemnt message content")), |
258 |
|
|