Reputation: 35
Is there a way to do X action when member creates invite. Like, when invite is being created, I can take Invite, code and member who created one and do some stuff with this?
Example usage (how I see this):
client.on('inviteCreated', (member, invite) => {
//stuff
}
Edit
Sorry, I am probably blind. Feel dumb now.
Upvotes: 0
Views: 1029
Reputation: 8492
Use the inviteCreate event
client.on("inviteCreate", invite => {
...
});
Upvotes: 1