small discord-rcon fix

This commit is contained in:
SeanWalsh95 2020-11-17 15:23:45 -05:00 committed by GitHub
parent 86d0878174
commit 88edf5ca5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,7 @@ export default class DiscordRcon extends BasePlugin {
this.options.discordClient.on('message', async (message) => {
// check the author of the message is not a bot and that the channel is the RCON console channel
if (message.author.bot || message.channel.id !== this.channelID) return;
if (message.author.bot || message.channel.id !== this.options.channelID) return;
let command = message.content;