mirror of
https://github.com/danbulant/Shasha
synced 2026-05-25 12:52:00 +00:00
one line refactor
This commit is contained in:
parent
4602ecfc4f
commit
f16d7693d4
1 changed files with 2 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
const commando = require("@iceprod/discord.js-commando");
|
||||
const { MessageEmbed } = require("discord.js");
|
||||
const { ranLog, errLog, getChannelMessage, noPerm, tryReact, findChannelRegEx, trySend } = require("../../resources/functions");
|
||||
const { ranLog, errLog, getChannelMessage, noPerm, tryReact, findChannelRegEx, trySend, cleanMentionID } = require("../../resources/functions");
|
||||
const getColor = require("../../resources/getColor");
|
||||
|
||||
module.exports = class embmaker extends commando.Command {
|
||||
|
|
@ -270,7 +270,7 @@ module.exports = class embmaker extends commando.Command {
|
|||
content = value.slice('content'.length).trim().replace(/\\(?!\\)/g,'');
|
||||
}
|
||||
if (value.toLowerCase().startsWith('channel')) {
|
||||
let ID = value.slice('channel'.length).trim();
|
||||
let ID = cleanMentionID(value.slice('channel'.length).trim());
|
||||
if (ID.toLowerCase() === 'here') {
|
||||
channel = msg.channel;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue