-
-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement guild scheduled events #1134
Implement guild scheduled events #1134
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
common/src/main/java/discord4j/common/store/action/gateway/GuildScheduledEventCreateAction.java
Show resolved
Hide resolved
common/src/main/java/discord4j/common/store/api/layout/GatewayDataUpdater.java
Show resolved
Hide resolved
common/src/main/java/discord4j/common/store/api/layout/DataAccessor.java
Outdated
Show resolved
Hide resolved
This refactoring uses an explicit cast to avoid a build error regarding type inference on the Long class in involved method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've committed some changes to this PR.
We're only missing the core events, that is adding the 5 addHandler
calls to DispatchHandlers class and it's good to go
GuildScheduledEventCreate
GuildScheduledEventUpdate
GuildScheduledEventDelete
GuildScheduledEventUserAdd
GuildScheduledEventUserRemove
Description: Uses #1046 and #1133 work, with additional work to implement Guild Scheduled Events functionnalities.
There is still some work to do :
I will publish on my own Maven repository a Snapshot of this PR : https://nexus.klutometis.net/#browse/browse:maven-public:com%2Fdiscord4j
The tag for this snapshot is 2.3.5-EVENTS-SNAPSHOT.
To add this snapshot, add into your gradle.build repositories the following :
Then in your dependencies, specify the version
3.2.5-EVENTS-SNAPSHOT
.You will be able to use features from this Pull request.
Justification: https://discord.com/developers/docs/resources/guild-scheduled-event