Skip to content

Feat: Guild Scheduled Events#37

Open
Daniel-Worrall wants to merge 6 commits into
shardlab:masterfrom
Daniel-Worrall:events
Open

Feat: Guild Scheduled Events#37
Daniel-Worrall wants to merge 6 commits into
shardlab:masterfrom
Daniel-Worrall:events

Conversation

@Daniel-Worrall
Copy link
Copy Markdown
Member

This adds Mappings, API methods, Permissions, Websocket, Caching for the recently released Guild Scheduled Events

Relevant docs are here.

The commits have been separated by each aspect for ease of review.

This has been tested through development, but some bugs could remain as I haven't done a final test of each method and there are no specs.

There are various decisions I made that should be discussed before being merged, like the start time on a newly created event default, the caching code for event users, and perhaps others.

Please reach out in the discord for any small questions, and follow up on the issue on what was discussed, to keep the spam low but the information relevant.

@Manu590
Copy link
Copy Markdown

Manu590 commented Mar 6, 2022

thanks too bro

@Daniel-Worrall Daniel-Worrall mentioned this pull request Mar 25, 2022
@Daniel-Worrall Daniel-Worrall added the enhancement New feature or request label Mar 25, 2022
@Daniel-Worrall
Copy link
Copy Markdown
Member Author

Ready for review/merge

@[JSON::Field(converter: Enum::ValueConverter(Discord::GuildScheduledEvent::EntityType))]
property entity_type : EntityType
property entity_id : Snowflake?
property entity_metadata : EntityMetadata
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thank you for working on this! I just noticed voice channel events have null entity_metadata:

Suggested change
property entity_metadata : EntityMetadata
property entity_metadata : EntityMetadata?

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants