Skip to content

Implemented gateway events GUILD_JOIN_REQUEST_UPDATE and GUILD_JOIN_REQUEST_DELETE. - #15

Merged
KubaZ2 merged 19 commits into
NetCordDev:alphafrom
bakirov-eldar:alpha
Mar 24, 2024
Merged

Implemented gateway events GUILD_JOIN_REQUEST_UPDATE and GUILD_JOIN_REQUEST_DELETE.#15
KubaZ2 merged 19 commits into
NetCordDev:alphafrom
bakirov-eldar:alpha

Conversation

@bakirov-eldar

Copy link
Copy Markdown

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

KubaZ2 commented Mar 12, 2024

Copy link
Copy Markdown
Member

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

@bakirov-eldar

bakirov-eldar commented Mar 12, 2024

Copy link
Copy Markdown
Author

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)

Comment thread NetCord/Gateway/GatewayClient.cs
Comment thread NetCord/Gateway/GuildJoinRequestStatus.cs
Comment thread NetCord/Gateway/GuildJoinRequestStatus.cs Outdated
Comment thread NetCord/Gateway/JsonModels/EventArgs/JsonGuildJoinRequestDeleteEventArgs.cs Outdated
Comment thread NetCord/Gateway/JsonModels/JsonGuildJoinRequest.cs Outdated
Comment thread NetCord/Gateway/GuildJoinRequest.cs Outdated
Comment thread NetCord/Gateway/GuildJoinRequest.cs Outdated
Comment thread NetCord/Serialization.cs Outdated
Comment thread NetCord/Gateway/VerificationFieldType.cs Outdated
Comment thread NetCord/Gateway/VerificationFieldType.cs Outdated
Comment thread NetCord/Gateway/GuildJoinRequest.cs Outdated
@KubaZ2

KubaZ2 commented Mar 24, 2024

Copy link
Copy Markdown
Member

@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 a934db4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants