MCPcopy Index your code
hub / github.com/RTByte/rtbyte / commandRunLog

Method commandRunLog

src/finalizers/devCommandLog.js:22–37  ·  view source on GitHub ↗
(message, runTime, logChannel)

Source from the content-addressed store, hash-verified

20 }
21
22 async commandRunLog(message, runTime, logChannel) {
23 const embed = new MessageEmbed()
24 .setAuthor(`${message.guild.name} (#${message.channel.name})`, message.guild.iconURL())
25 .setColor(this.client.settings.get('colors.white'))
26 .setTitle(message.guild.language.get('GLOBAL_LOG_COMMANDRUN'))
27 .setDescription(`[${message.guild.language.get('CLICK_TO_VIEW')}](${message.url})`)
28 .addField('Message', message.content)
29 .addField('Runtime', runTime)
30 .setTimestamp()
31 .setFooter(message.author.tag, message.author.displayAvatarURL());
32
33 logChannel = await this.client.channels.cache.get(logChannel);
34 if (logChannel) logChannel.send('', { disableEveryone: true, embed: embed });
35
36 return;
37 }
38
39 async dmCommandLog(message, runTime, logChannel) {
40 const embed = new MessageEmbed()

Callers 1

runMethod · 0.80

Calls 1

sendMethod · 0.80

Tested by

no test coverage detected