Added welcome message image url error workaround and added the ability to chose a custom welcome message'

This commit is contained in:
ION606
2022-06-10 20:48:43 +03:00
parent 5cb58bbfe0
commit d881aaf14b
5 changed files with 89 additions and 50 deletions
+2 -2
View File
@@ -69,7 +69,7 @@ bot.on("guildCreate", guild => {
if (err) { return console.log(err); }
const dbo = client.db(guild.id).collection('SETUP');
dbo.insertMany([{_id: 'WELCOME', 'welcomechannel': null, 'welcomebanner': null}]);
dbo.insertMany([{_id: 'WELCOME', 'welcomechannel': null, 'welcomemessage': null, 'welcomebanner': null}]);
});
client.close();
@@ -221,7 +221,7 @@ bot.on('guildMemberAdd', async (member) => {
return console.log('No welcome channel detected');
}
await welcome(member, welcomechannel, docs[0].welcomebanner);
await welcome(member, welcomechannel, docs[0].welcomemessage);
})
})
});