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

Method run

src/finalizers/devCommandLog.js:10–20  ·  view source on GitHub ↗
(message, command, response, runTime, custom)

Source from the content-addressed store, hash-verified

8 }
9
10 async run(message, command, response, runTime, custom) {
11 // Checks if message sent in guild, command log enabled, guild opted in to command analytics, NOT custom, then calls commandRunLog
12 // eslint-disable-next-line max-len
13 if (message.guild && this.client.settings.get('logs.commandRun') && message.guild.settings.get('developmentSettings.commandAnalytics') && !custom) await this.commandRunLog(message, runTime, this.client.settings.get('channels.globalLog'));
14 // Checks if message NOT sent in guild, command log enabled, then calls dmCommandLog
15 if (!message.guild && this.client.settings.get('logs.commandRun')) await this.dmCommandLog(message, runTime, this.client.settings.get('channels.globalLog'));
16 // Checks if message sent in guild, guild command log enabled, then calls commandRunLog for guild
17 if (message.guild && message.guild.settings.get('logs.events.commandRun')) await this.commandRunLog(message, runTime, message.guild.settings.get('channels.log'));
18
19 return;
20 }
21
22 async commandRunLog(message, runTime, logChannel) {
23 const embed = new MessageEmbed()

Callers

nothing calls this directly

Calls 2

commandRunLogMethod · 0.80
dmCommandLogMethod · 0.80

Tested by

no test coverage detected