mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-10 08:10:18 +00:00
24 lines
639 B
JavaScript
24 lines
639 B
JavaScript
module.exports = {
|
|
name: 'guildcreate',
|
|
async execute(client, guild) {
|
|
client.db.collection('guilds').doc(guild.id).set({
|
|
prefix: client.config.prefix,
|
|
defaultVolume: 5,
|
|
permissions: false,
|
|
premium: false,
|
|
dj: false,
|
|
djrole: null,
|
|
startPlaying: true
|
|
});
|
|
client.global.db.guilds[guild.id] = {
|
|
prefix: client.config.prefix,
|
|
defaultVolume: 5,
|
|
permissions: false,
|
|
premium: false,
|
|
dj: false,
|
|
djrole: null,
|
|
startPlaying: true
|
|
};
|
|
}
|
|
}
|