NetCordDev / NetCord

The modern and fully customizable C# Discord library.
https://netcord.dev
MIT License
65 stars 10 forks source link

Implemented gateway events GUILD_JOIN_REQUEST_UPDATE and GUILD_JOIN_REQUEST_DELETE. #15

Closed bakirov-eldar closed 7 months ago

bakirov-eldar commented 7 months ago

Implemented gateway events GUILD_JOIN_REQUEST_UPDATE and GUILD_JOIN_REQUEST_DELETE.

These events are not officially documented by Discord, but they are actually sent by the Discord API and can be handled by bot gateway clients.

KubaZ2 commented 7 months ago

Thanks for your contribution! Could you tell me when are the events sent?

bakirov-eldar commented 7 months ago

Thanks for your contribution! Could you tell me when are the events sent?

GUILD_JOIN_REQUEST_UPDATE Fired when a user agrees to the member screening(rules) GUILD_JOIN_REQUEST_DELETE Fired when a user leaves without agreeing to the member screening(rules)

KubaZ2 commented 7 months ago

@bakirov-eldar, is there any reason you used VerificationField name? Based on the API, looks like FormResponse would be more appropriate.

EDIT: I renamed it to GuildJoinRequestFormResponse in https://github.com/KubaZ2/NetCord/pull/15/commits/a934db4f14e8532811b1fa596497fb8116829d98