Only send welcome messages once per user, until plugin reload

This commit is contained in:
Dragory 2020-08-21 03:48:16 +03:00
parent 902be16ae8
commit 1787ec707c
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
3 changed files with 9 additions and 0 deletions

View file

@ -30,5 +30,6 @@ export const WelcomeMessagePlugin = zeppelinPlugin<WelcomeMessagePluginType>()("
const { state, guild } = pluginData;
state.logs = new GuildLogs(guild.id);
state.sentWelcomeMessages = new Set();
},
});