Skip to content
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

Merged
merged 21 commits into from
Jun 5, 2023

Conversation

Gregory-Widmer
Copy link
Contributor

@Gregory-Widmer Gregory-Widmer commented Apr 10, 2023

Description: Uses #1046 and #1133 work, with additional work to implement Guild Scheduled Events functionnalities.

There is still some work to do :

  • : Add an example bot
  • : Release a snapshot for testing this feature
  • : Test the changes

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 :

repositories {
    maven { url 'https://nexus.klutometis.net/repository/maven-public' }
}

Then in your dependencies, specify the version 3.2.5-EVENTS-SNAPSHOT.

dependencies {
    api 'com.discord4j:discord4j-core:3.2.5-EVENTS-SNAPSHOT'
}

You will be able to use features from this Pull request.

⚠️ This PR requires a new version of Discord JSON : Discord4J/discord-json#143

Justification: https://discord.com/developers/docs/resources/guild-scheduled-event

@Gregory-Widmer Gregory-Widmer changed the title Feature/guild events Implement guild scheduled events Apr 10, 2023
Copy link
Member

@quanticc quanticc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@quanticc quanticc added this to the 3.2.5 milestone Apr 17, 2023
@quanticc quanticc added the feature-request Request for a new library feature or behavior label Apr 17, 2023
@quanticc quanticc mentioned this pull request Apr 17, 2023
8 tasks
Copy link
Member

@quanticc quanticc left a 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

@quanticc quanticc merged commit 4106965 into Discord4J:3.2.x Jun 5, 2023
4 checks passed
quanticc added a commit that referenced this pull request Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for a new library feature or behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants