mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-10 05:10:17 +00:00
Update message.js
This commit is contained in:
parent
363f7fa49c
commit
9210c41d83
@ -2,7 +2,7 @@ module.exports = {
|
|||||||
name: 'message',
|
name: 'message',
|
||||||
async execute(client, message, Discord) {
|
async execute(client, message, Discord) {
|
||||||
if (message.author.bot || !message.guild) return;
|
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.guilds.forEach(guild => {
|
||||||
client.global.db.guilds[guild.id] = {
|
client.global.db.guilds[guild.id] = {
|
||||||
prefix: client.config.prefix,
|
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 for __all__ guilds!');
|
||||||
});
|
});
|
||||||
return message.channel.send(':white_check_mark: Reset all guild settings!')
|
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] = {
|
client.global.db.guilds[message.guild.id] = {
|
||||||
prefix: client.config.prefix,
|
prefix: client.config.prefix,
|
||||||
defaultVolume: 5,
|
defaultVolume: 5,
|
||||||
|
Loading…
Reference in New Issue
Block a user