mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
Merge master
This commit is contained in:
commit
1518d58e25
53 changed files with 289 additions and 320 deletions
|
@ -1,7 +1,7 @@
|
|||
import { ChannelType, escapeInlineCode } from "discord.js";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { sendErrorMessage, sendSuccessMessage } from "../../../pluginUtils";
|
||||
import { asSingleLine, renderUserUsername } from "../../../utils";
|
||||
import { asSingleLine, renderUsername } from "../../../utils";
|
||||
import { getMissingChannelPermissions } from "../../../utils/getMissingChannelPermissions";
|
||||
import { missingPermissionError } from "../../../utils/missingPermissionError";
|
||||
import { BOT_SLOWMODE_CLEAR_PERMISSIONS } from "../requiredPermissions";
|
||||
|
@ -45,7 +45,7 @@ export const SlowmodeClearCmd = slowmodeCmd({
|
|||
pluginData,
|
||||
msg.channel,
|
||||
asSingleLine(`
|
||||
Failed to clear slowmode from **${renderUserUsername(args.user)}** in <#${args.channel.id}>:
|
||||
Failed to clear slowmode from **${renderUsername(args.user)}** in <#${args.channel.id}>:
|
||||
Threads cannot have Bot Slowmode
|
||||
`),
|
||||
);
|
||||
|
@ -56,7 +56,7 @@ export const SlowmodeClearCmd = slowmodeCmd({
|
|||
pluginData,
|
||||
msg.channel,
|
||||
asSingleLine(`
|
||||
Failed to clear slowmode from **${renderUserUsername(args.user)}** in <#${args.channel.id}>:
|
||||
Failed to clear slowmode from **${renderUsername(args.user)}** in <#${args.channel.id}>:
|
||||
\`${escapeInlineCode(e.message)}\`
|
||||
`),
|
||||
);
|
||||
|
@ -66,7 +66,7 @@ export const SlowmodeClearCmd = slowmodeCmd({
|
|||
sendSuccessMessage(
|
||||
pluginData,
|
||||
msg.channel,
|
||||
`Slowmode cleared from **${renderUserUsername(args.user)}** in <#${args.channel.id}>`,
|
||||
`Slowmode cleared from **${renderUsername(args.user)}** in <#${args.channel.id}>`,
|
||||
);
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue