Spaffel
Spaffel

Reputation: 21

Discord.py on_invite_create event

Is there an discord.py event like:

@client.event
async def on_invite_create(invite):

Does something like this exist? Ive searched in the documentation but couldnt find anything like that.

Thanks in advance :)

Upvotes: 0

Views: 524

Answers (1)

Trevor
Trevor

Reputation: 595

There is yes, it's called exactly that. on_invite_create is called when an Invite is created. You must have the manage_channels permission to receive this, and Intents.invites enabled.

You can view the documentation for it here

Upvotes: 1

Related Questions