简体   繁体   中英

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.

Use the inviteCreate event

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM