-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Nostrum.Api
Module Decomposition (#641)
* Update Message type typedoc from latest API docs * Update buttons guide image from API docs * Update `Struct.Channel` with default_sort_order and default_forum_layout Update guild_forum_channel type spec accordingly * Remove id callout to match rest of typedocs * Rename base to adapter to indicate direction towards building behavior driven adapters * Add `Nostrum.Api.ApplicationCommand` module and functions * Add `Nostrum.Api.AutoModeration` module and functions * Add `Nostrum.Api.Channel` module and functions * Adjust Api Ratelimited for base rename * Remove unused alias * WIP begin delegating `Nostrum.Api` function calls to submodules Also begin working towards a sane pattern for error returning * Extract functions for Guild, Invite, MEssage, Poll, Role, ScheduledEvent, and Self * Extract functions for Nostrum.Api.Thread * Extract functions for Nostrum.Api.User * Extract functions for Nostrum.Api.Webhook Also adjust missed prior delegations * Extract functions for Interaction and Sticker Also adds the get sticker pack route * Minimize diff and remove unused alias * Minimize diff * Start moving api helper functions to Api.Helpers module * Update helpers.ex Co-authored-by: Michael <[email protected]> * Add bypass for testing * WIP Nostrum.Api delegate refactoring * `Nostrum.Api` delegate refactoring and deprecation warnings * move type definitions to Nostrum.Api.Webhook * alias missing modules in Nostrum.Api.Webhook * Change doc "since" version to 1.x.x * Add ATTACHMENT application command option type definition * Add PRIMARY_ENTRY_POINT constant for application commands * Use alphabetical ordering of aliases * Add module documentation for Discord API modules * Update docs and allowed trigger types for AutoModerationRule * Update docs and allowed action types for AutoModerationRule.Action * Update docs naming to match discord api docs * Remove bypass and rebuild lockfile * Update voice API calls to use proper module functions * alias Self and use in Voice module * Update references to new API modules in docs and internal functions * Update references to new API modules in docs * Move helper functions out of Nostrum.Api module * Properly reference `maybe_convert_date_time` * Use proper alias for ConsumerGroup example * Move Role API endpoints to Guild module Also updates relevant docs --------- Co-authored-by: Michael <[email protected]>
- Loading branch information
Showing
39 changed files
with
5,159 additions
and
3,619 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.