3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-12 05:27:19 +00:00

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 b6e99f6c02
commit faee98c4e6
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();
},
});