mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-25 10:25:01 +00:00
initial
This commit is contained in:
parent
3b98c3bdc1
commit
57b9540edf
15 changed files with 57 additions and 20 deletions
|
@ -6,6 +6,7 @@ import { hasPermission, sendErrorMessage, sendSuccessMessage } from "../../../pl
|
|||
import { asSingleLine, UnknownUser } from "../../../utils";
|
||||
import { ModActionsPluginType } from "../types";
|
||||
import { formatReasonWithAttachments } from "./formatReasonWithAttachments";
|
||||
import { parseReason } from "./parseReason";
|
||||
|
||||
export async function actualUnmuteCmd(
|
||||
pluginData: GuildPluginData<ModActionsPluginType>,
|
||||
|
@ -27,7 +28,10 @@ export async function actualUnmuteCmd(
|
|||
pp = msg.author;
|
||||
}
|
||||
|
||||
const reason = args.reason ? formatReasonWithAttachments(args.reason, [...msg.attachments.values()]) : undefined;
|
||||
const config = pluginData.config.get();
|
||||
const reason = args.reason
|
||||
? parseReason(config, formatReasonWithAttachments(args.reason, [...msg.attachments.values()]))
|
||||
: undefined;
|
||||
|
||||
const mutesPlugin = pluginData.getPlugin(MutesPlugin);
|
||||
const result = await mutesPlugin.unmuteUser(user.id, args.time, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue