mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-20 00:05:04 +00:00
rename option to delete-pins for more clarity
This commit is contained in:
parent
dd7939b79b
commit
ab445b7019
1 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ export const CleanCmd = utilityCmd({
|
|||
user: ct.userId({ option: true, shortcut: "u" }),
|
||||
channel: ct.channelId({ option: true, shortcut: "c" }),
|
||||
bots: ct.switchOption({ shortcut: "b" }),
|
||||
pins: ct.switchOption({ shortcut: "p" }),
|
||||
"delete-pins": ct.switchOption({ shortcut: "p" }),
|
||||
"has-invites": ct.switchOption({ shortcut: "i" }),
|
||||
match: ct.regex({ option: true, shortcut: "m" }),
|
||||
},
|
||||
|
@ -97,7 +97,7 @@ export const CleanCmd = utilityCmd({
|
|||
let beforeId = msg.id;
|
||||
const timeCutoff = msg.timestamp - MAX_CLEAN_TIME;
|
||||
|
||||
const deletePins = args.pins != null ? args.pins : false;
|
||||
const deletePins = args["delete-pins"] != null ? args["delete-pins"] : false;
|
||||
let pins = [];
|
||||
if (!deletePins) {
|
||||
pins = await msg.channel.getPins();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue