From 9210c41d83877aee1c7bab777d367a5937b6a1b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Thu, 31 Oct 2019 23:40:50 +0200 Subject: [PATCH] Update message.js --- events/message.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/events/message.js b/events/message.js index e6c9ab6a..febdbc20 100644 --- a/events/message.js +++ b/events/message.js @@ -2,7 +2,7 @@ module.exports = { name: 'message', async execute(client, message, Discord) { if (message.author.bot || !message.guild) return; - if (message.content === '->reset' && message.author.id === client.global.devId) { + if (message.content === '->reset' && message.author.id === client.config.devId) { client.guilds.forEach(guild => { client.global.db.guilds[guild.id] = { prefix: client.config.prefix, @@ -15,7 +15,7 @@ module.exports = { return message.channel.send(':white_check_mark: Reset all guild settings for __all__ guilds!'); }); return message.channel.send(':white_check_mark: Reset all guild settings!') - } else if (message.content === '->resetguildsettings' && message.author.id === client.global.devId) { + } else if (message.content === '->resetguildsettings' && message.author.id === client.config.devId) { client.global.db.guilds[message.guild.id] = { prefix: client.config.prefix, defaultVolume: 5,