ExampleEngineering
ExampleEngineering

Reputation: 35

Discord.JS inviteCreated event?

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

Answers (1)

abney317
abney317

Reputation: 8492

Use the inviteCreate event

client.on("inviteCreate", invite => {
 ...
});

Upvotes: 1

Related Questions