résolution d'un bug, async manquant

This commit is contained in:
Nemo 2021-11-09 17:33:18 +01:00
parent b2a377916d
commit e5c6c4b553

View File

@ -8,7 +8,7 @@ module.exports = {
await guild.fetchWelcomeScreen() await guild.fetchWelcomeScreen()
.then(() => { .then(() => {
const channel = this.welcomeChannels; const channel = this.welcomeChannels;
channel.forEach(element => { channel.forEach(async element => {
const nickname = memberNicknameMention(member.id); const nickname = memberNicknameMention(member.id);
await interaction.reply('Bienvenue ' + nickname + ' ! Mets toi à l\'aise, il y a des bières dans le frigo.'); await interaction.reply('Bienvenue ' + nickname + ' ! Mets toi à l\'aise, il y a des bières dans le frigo.');
}) })