From e62bec318a0bbbf1f5c25f0c960d940e2a8f916c Mon Sep 17 00:00:00 2001 From: Matte <51192395+MatteZ02@users.noreply.github.com> Date: Wed, 29 Jul 2020 19:45:37 +0300 Subject: [PATCH] Update reset.js --- src/commands/settings/reset.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/settings/reset.js b/src/commands/settings/reset.js index 4f27513d..18f53273 100644 --- a/src/commands/settings/reset.js +++ b/src/commands/settings/reset.js @@ -1,7 +1,7 @@ module.exports = { name: 'reset', async execute(msg, args, client) { - client.global.db.guilds[guild.id] = { + client.global.db.guilds[msg.guild.id] = { prefix: client.config.prefix, defaultVolume: client.config.defaultVolume, permissions: client.config.permissions, @@ -15,4 +15,4 @@ module.exports = { }; msg.channel.send(client.messages.reset); } -}; \ No newline at end of file +};