Skip to content

Commit

Permalink
Apply codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
reck1610 committed Jan 29, 2023
1 parent 62b8909 commit 3042c49
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions squad-server/plugins/discord-base-plugin.js
Expand Up @@ -19,14 +19,17 @@ export default class DiscordBasePlugin extends BasePlugin {
this.channel = await this.options.discordClient.channels.fetch(this.options.channelID);
} catch (error) {
this.channel = null;
this.verbose(1, `Could not fetch Discord channel with channelID "${this.options.channelID}". Error: ${error.message}`);
this.verbose(
1,
`Could not fetch Discord channel with channelID "${this.options.channelID}". Error: ${error.message}`
);
this.verbose(2, `${error.stack}`);
}
}

async sendDiscordMessage(message) {
if (!this.channel) {
this.verbose(1, `Could not send Discord Message. Channel not initialized.`)
this.verbose(1, `Could not send Discord Message. Channel not initialized.`);
return;
}

Expand Down

0 comments on commit 3042c49

Please sign in to comment.