Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Complete forum channel implementation (#1636)
* Add ForumTag type * Make emoji_name nullable * Add forum tag fields * Add missing attributes & create ForumTag * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix typehint syntax * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix typehints * Update discord/http.py Co-authored-by: BobDotCom <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update channel.py * Update channel.py * Update forum tags - Move available_tags to ForumChannel, turn type to `list[ForumTag]` - Fix versionadded * Implement ForumChannel.get_tag * Add sort order, channel flags and total msg * Fix typehints * Update Thread.applied_tags * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Implement ForumChannel.requires_tag * Implement Thread.is_pinned * Update `versionadded`s in docstring * Update SortOrder to match API values * Implement default_sort_order * Implement default_thread_rate_limit_per_user * Add new fields to edit routes * Rename default_thread_rate_limit_per_user This will be called default_thread_slowmode_delay in Pycord. * Seperate edit methods for text and forum channels * Map default_thread_slowmode_delay to valid field * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Add require_tag field to ForumChannel.edit * Parse available_tags to dicts in edit * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix: NameError due to TYPE_CHECKING imports * feat: applied_tags field in Thread.edit Co-authored-by: BobDotCom <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Lala Sabathil <[email protected]>
- Loading branch information