From 78a858fbed5b07317410023bc51bb3b9590a3e99 Mon Sep 17 00:00:00 2001 From: Bsian Date: Sun, 20 Oct 2019 18:08:16 +0100 Subject: [PATCH] lint --- src/Util.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Util.ts b/src/Util.ts index bc99174..5bec43b 100644 --- a/src/Util.ts +++ b/src/Util.ts @@ -37,7 +37,7 @@ export default class Util { } public async handleError(error: Error, message?: Message, command?: Command): Promise { - const info = { content: `\`\`\`js\n${error.stack}\n\`\`\``, embed: null } + const info = { content: `\`\`\`js\n${error.stack}\n\`\`\``, embed: null }; if (message) { const embed = new RichEmbed(); embed.setColor('FF0000'); @@ -47,14 +47,14 @@ export default class Util { embed.addField('User', `${message.author.mention} (\`${message.author.id}\`)`, true); embed.addField('Channel', message.channel.mention, true); let guild: string; - if (message.channel instanceof PrivateChannel) guild = '@me'; - else guild = message.channel.guild.id - embed.addField('Message link', `[Click here](https://discordapp.com/channels/${guild}/${message.channel.id}/${message.id})`, true) + if (message.channel instanceof PrivateChannel) guild = '@me'; + else guild = message.channel.guild.id; + embed.addField('Message link', `[Click here](https://discordapp.com/channels/${guild}/${message.channel.id}/${message.id})`, true); embed.setTimestamp(new Date(message.timestamp)); info.embed = embed; } await this.client.createMessage('595788220764127272', info); - if (message) this.client.createMessage('595788220764127272', `Message content for above error`) + if (message) this.client.createMessage('595788220764127272', 'Message content for above error'); if (command) this.client.commands.get(command.name).enabled = false; if (message) message.channel.createMessage(`***${this.client.stores.emojis.error} An unexpected error has occured - please contact a member of the Engineering Team.${command ? ' This command has been disabled.' : ''}***`); }