diff --git a/cmds/utility/cloneembed.js b/cmds/utility/cloneembed.js index 1ae515a..8d3e2c4 100644 --- a/cmds/utility/cloneembed.js +++ b/cmds/utility/cloneembed.js @@ -5,36 +5,36 @@ const { MessageEmbed } = require("discord.js"); const { getChannelMessage, errLog, ranLog, trySend, tryReact } = require("../../resources/functions"); module.exports = class cloneembed extends commando.Command { - constructor(client) { - super(client, { - name: "clone-embed", - aliases: ["clone-emb","clon-emb", "clon-embed"], - memberName: "clonemb", - group: "utility", - description: "Clone an Embed." - }); - } - async run(msg, cargs) { - const args = cargs.trim().split(/ +/); - try { - const theMes = await getChannelMessage(msg,args[0],args[1]); - let content; - if (theMes.content) { - content = theMes.content; - } - if (!theMes.embeds || (theMes.embeds).length === 0) { - return trySend(this.client, msg, 'ypu don\'t know what an embed is? <:cathmmLife:772716381874946068>'); - } - if (!args[0]) { - return trySend(this.client, msg, 'Which message||'); - } - const sent = theMes.embeds.map(r => trySend(this.client, msg, {content:content,embed:r})); - if (sent) { - tryReact(msg, "a:yesLife:794788847996370945"); - } - return sent; - } catch (e) { - return trySend(this.client, msg, "No embed found. Use ` ` if it's in another channel."); - } + constructor(client) { + super(client, { + name: "clone-embed", + aliases: ["clone-emb", "clon-emb", "clon-embed"], + memberName: "clonemb", + group: "utility", + description: "Clone an Embed." + }); + } + async run(msg, cargs) { + const args = cargs.trim().split(/ +/); + try { + const theMes = await getChannelMessage(msg, args[0], args[1]); + let content; + if (theMes.content) { + content = theMes.content; + } + if (!theMes.embeds || (theMes.embeds).length === 0) { + return trySend(this.client, msg, 'ypu don\'t know what an embed is? <:cathmmLife:772716381874946068>'); + } + if (!args[0]) { + return trySend(this.client, msg, 'Which message??'); + } + const sent = theMes.embeds.map(r => trySend(this.client, msg, { content: content, embed: r })); + if (sent) { + tryReact(msg, "a:yesLife:794788847996370945"); + } + return sent; + } catch (e) { + return trySend(this.client, msg, "No embed found. Use ` ` if it's in another channel."); } + } }; \ No newline at end of file diff --git a/cmds/utility/perms.js b/cmds/utility/perms.js index da16169..f62c3ff 100644 --- a/cmds/utility/perms.js +++ b/cmds/utility/perms.js @@ -31,7 +31,7 @@ module.exports = class perms extends commando.Command { channel = getChannel(msg, use); if (!channel || !(channel instanceof GuildChannel)) { channel = undefined; - mes += "Channel unexisted||?\n"; + mes += "Channel unexisted!?\n"; } } const find = arg.replace(/(?