3 |
const { escapeRegex } = require("../src/util"); |
const { escapeRegex } = require("../src/util"); |
4 |
|
|
5 |
module.exports = { |
module.exports = { |
6 |
version: "1.5.1", |
version: "1.6.4", |
7 |
commands: [ |
commands: [ |
8 |
{ |
{ |
9 |
name: 'addsnippet', |
name: 'addsnippet', |
32 |
{ |
{ |
33 |
name: 'ban', |
name: 'ban', |
34 |
shortBrief: "Ban someone in this server.", |
shortBrief: "Ban someone in this server.", |
35 |
description: null, |
description: "Ban a user. `-d` is the number days old messages to delete. It must be in range 0-7. If `-d` is passed then an argument after it is required.", |
36 |
structure: "<UserID|Mention> [Reason]", |
structure: "<UserID|Mention> [-d=DAYS] [Reason]", |
37 |
example: "`%%ban 385753607325075320`\n`%%ban @Someone You are spamming a lot`", |
example: "`%%ban 385753607325075320`\n`%%ban @Someone You are spamming a lot`\n`%%ban @Someone -d 5`\n`%%ban 385753607325075320 -d 5 You are spamming a lot`", |
38 |
notes: null |
notes: null |
39 |
}, |
}, |
40 |
{ |
{ |
142 |
notes: null, |
notes: null, |
143 |
options: { |
options: { |
144 |
"--no-send": "Do not send a confirmation message to the locked channel", |
"--no-send": "Do not send a confirmation message to the locked channel", |
|
"--everyone": "Lock the channels for @everyone rather than the general role", |
|
145 |
} |
} |
146 |
}, |
}, |
147 |
{ |
{ |
153 |
notes: null, |
notes: null, |
154 |
options: { |
options: { |
155 |
"--no-send": "Do not send a confirmation message to the locked channel", |
"--no-send": "Do not send a confirmation message to the locked channel", |
|
"--everyone": "Lock the channels for @everyone rather than the general role", |
|
156 |
} |
} |
157 |
}, |
}, |
158 |
{ |
{ |
287 |
notes: null, |
notes: null, |
288 |
options: { |
options: { |
289 |
"--no-send": "Do not send a confirmation message to the locked channel", |
"--no-send": "Do not send a confirmation message to the locked channel", |
|
"--everyone": "Unlock the channels for @everyone rather than the general role", |
|
290 |
} |
} |
291 |
}, |
}, |
292 |
{ |
{ |
298 |
notes: null, |
notes: null, |
299 |
options: { |
options: { |
300 |
"--no-send": "Do not send a confirmation message to the locked channel", |
"--no-send": "Do not send a confirmation message to the locked channel", |
|
"--everyone": "Lock the channels for @everyone rather than the general role", |
|
301 |
"--raid": "Unlock all Raid-locked channels" |
"--raid": "Unlock all Raid-locked channels" |
302 |
} |
} |
303 |
}, |
}, |
353 |
}, |
}, |
354 |
async handle(msg, cm) { |
async handle(msg, cm) { |
355 |
if (typeof cm.args[0] === 'undefined') { |
if (typeof cm.args[0] === 'undefined') { |
|
// await msg.reply({ |
|
|
// embeds: [ |
|
|
// new MessageEmbed() |
|
|
// .setColor('#f14a60') |
|
|
// .setDescription(`This command requires at least one argument.`) |
|
|
// ] |
|
|
// }); |
|
|
|
|
356 |
await msg.reply({ |
await msg.reply({ |
357 |
embeds: [ |
embeds: [ |
358 |
new MessageEmbed() |
new MessageEmbed() |