mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-14 16:00:17 +00:00
22 lines
773 B
JavaScript
22 lines
773 B
JavaScript
|
module.exports = {
|
||
|
name: 'guildcreate',
|
||
|
async execute(client, guild) {
|
||
|
client.db.collection('guilds').doc(guild.id).set({
|
||
|
prefix: client.config.prefix,
|
||
|
defaultVolume: client.config.defaultVolume,
|
||
|
permissions: client.config.permissions,
|
||
|
dj: client.config.dj,
|
||
|
djrole: client.config.djrole,
|
||
|
startPlaying: client.config.startPlaying
|
||
|
});
|
||
|
client.global.db.guilds[guild.id] = {
|
||
|
prefix: client.config.prefix,
|
||
|
defaultVolume: client.config.defaultVolume,
|
||
|
permissions: client.config.permissions,
|
||
|
dj: client.config.dj,
|
||
|
djrole: client.config.djrole,
|
||
|
startPlaying: client.config.startPlaying
|
||
|
};
|
||
|
}
|
||
|
}
|