mirror of
https://github.com/danbulant/Shasha
synced 2026-06-10 01:51:10 +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 commando = require("@iceprod/discord.js-commando");
|
||||||
const { MessageEmbed } = require("discord.js");
|
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");
|
const getColor = require("../../resources/getColor");
|
||||||
|
|
||||||
module.exports = class embmaker extends commando.Command {
|
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,'');
|
content = value.slice('content'.length).trim().replace(/\\(?!\\)/g,'');
|
||||||
}
|
}
|
||||||
if (value.toLowerCase().startsWith('channel')) {
|
if (value.toLowerCase().startsWith('channel')) {
|
||||||
let ID = value.slice('channel'.length).trim();
|
let ID = cleanMentionID(value.slice('channel'.length).trim());
|
||||||
if (ID.toLowerCase() === 'here') {
|
if (ID.toLowerCase() === 'here') {
|
||||||
channel = msg.channel;
|
channel = msg.channel;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue