(message, command, response, runTime, custom)
| 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() |
nothing calls this directly
no test coverage detected