mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
cleanup: use utils.noop instead of empty fn
This commit is contained in:
parent
8d311590ad
commit
2af174ba1f
1 changed files with 7 additions and 7 deletions
|
@ -1,6 +1,6 @@
|
|||
import { Plugin, decorators as d, reply } from "knub";
|
||||
import { Channel, EmbedOptions, Message, TextChannel, User, VoiceChannel } from "eris";
|
||||
import { embedPadding, errorMessage, stripObjectToScalars, successMessage, trimLines } from "../utils";
|
||||
import { embedPadding, errorMessage, noop, stripObjectToScalars, successMessage, trimLines } from "../utils";
|
||||
import { GuildLogs } from "../data/GuildLogs";
|
||||
import { LogType } from "../data/LogType";
|
||||
import moment from "moment-timezone";
|
||||
|
@ -173,8 +173,8 @@ export class UtilityPlugin extends Plugin {
|
|||
);
|
||||
|
||||
setTimeout(() => {
|
||||
msg.delete().catch(() => {});
|
||||
responseMsg.delete().catch(() => {});
|
||||
msg.delete().catch(noop);
|
||||
responseMsg.delete().catch(noop);
|
||||
}, CLEAN_COMMAND_DELETE_DELAY);
|
||||
}
|
||||
|
||||
|
@ -196,8 +196,8 @@ export class UtilityPlugin extends Plugin {
|
|||
);
|
||||
|
||||
setTimeout(() => {
|
||||
msg.delete().catch(() => {});
|
||||
responseMsg.delete().catch(() => {});
|
||||
msg.delete().catch(noop);
|
||||
responseMsg.delete().catch(noop);
|
||||
}, CLEAN_COMMAND_DELETE_DELAY);
|
||||
}
|
||||
|
||||
|
@ -219,8 +219,8 @@ export class UtilityPlugin extends Plugin {
|
|||
);
|
||||
|
||||
setTimeout(() => {
|
||||
msg.delete().catch(() => {});
|
||||
responseMsg.delete().catch(() => {});
|
||||
msg.delete().catch(noop);
|
||||
responseMsg.delete().catch(noop);
|
||||
}, CLEAN_COMMAND_DELETE_DELAY);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue