mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-25 18:25:03 +00:00
djs typings: Attachment & Util
Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
parent
aad4ad82a5
commit
010451c7e7
19 changed files with 49 additions and 44 deletions
|
@ -1,4 +1,11 @@
|
|||
import { ChannelType, GuildTextBasedChannel, PermissionsBitField, TextChannel, ThreadChannel, Util } from "discord.js";
|
||||
import {
|
||||
ChannelType,
|
||||
escapeInlineCode,
|
||||
GuildTextBasedChannel,
|
||||
PermissionsBitField,
|
||||
TextChannel,
|
||||
ThreadChannel,
|
||||
} from "discord.js";
|
||||
import humanizeDuration from "humanize-duration";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { sendErrorMessage, sendSuccessMessage } from "../../../pluginUtils";
|
||||
|
@ -132,7 +139,7 @@ export const SlowmodeSetCmd = slowmodeCmd({
|
|||
rateLimitPerUser: rateLimitSeconds,
|
||||
});
|
||||
} catch (e) {
|
||||
sendErrorMessage(pluginData, msg.channel, `Failed to set native slowmode: ${Util.escapeInlineCode(e.message)}`);
|
||||
sendErrorMessage(pluginData, msg.channel, `Failed to set native slowmode: ${escapeInlineCode(e.message)}`);
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue