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

feat(APIGuildScheduledEvent): add more precise types for stage instance/voice/external events #278

Merged
merged 1 commit into from
Dec 26, 2021
Merged

feat(APIGuildScheduledEvent): add more precise types for stage instance/voice/external events #278

merged 1 commit into from
Dec 26, 2021

Commits on Dec 26, 2021

  1. feat(APIGuildScheduledEvent): add more precise types for stage instan…

    …ce/voice/external events
    
    This commit turns `APIGuildScheduledEvent` into a union of
    `APIStageInstanceGuildScheduledEvent`, `APIVoiceGuildScheduledEvent`,
    and `APIExternalGuildScheduledEvent`, which each has more precise types
    according to [the docs][1].
    
    This commit also fixes a bug as previously
    `APIGuildScheduledEvent#entity_metadata` was not nullable, even though
    it should be.
    
    [1]: https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-object-field-requirements-by-entity-type
    cherryblossom000 committed Dec 26, 2021
    Configuration menu
    Copy the full SHA
    191a23b View commit details
    Browse the repository at this point in the history