Skip to content

Commit

Permalink
🐛 Fetch all members on start
Browse files Browse the repository at this point in the history
  • Loading branch information
Androz2091 committed Mar 7, 2021
1 parent 4229794 commit 6883fb4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ Vue.mixin({
if (!s4d.client.readyTimestamp) throw new Error('You cannot perform message operations while the bot is not connected to the Discord API')
}
};
s4d.client = new s4d.Discord.Client();
s4d.client = new s4d.Discord.Client({
fetchAllMembers: true
});
s4d.client.on('raw', async (packet) => {
if(['MESSAGE_REACTION_ADD', 'MESSAGE_REACTION_REMOVE'].includes(packet.t)){
const guild = s4d.client.guilds.cache.get(packet.d.guild_id);
Expand Down

0 comments on commit 6883fb4

Please sign in to comment.