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: Complete forum channel implementation #1636

Merged
merged 56 commits into from
Nov 17, 2022
Merged
Changes from 1 commit
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
78f58ea
Add ForumTag type
Dorukyum Sep 15, 2022
6d5dc2d
Make emoji_name nullable
Dorukyum Sep 16, 2022
512d107
Merge branch 'master' into forum-tags
Dorukyum Sep 24, 2022
83e6382
Add forum tag fields
Dorukyum Sep 28, 2022
6a3066e
Merge branch 'forum-tags' of https://github.com/Pycord-Development/py…
Dorukyum Sep 28, 2022
97427b1
Add missing attributes & create ForumTag
Dorukyum Oct 17, 2022
48cda11
Merge branch 'master' into forum-tags
BobDotCom Oct 17, 2022
344badc
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 17, 2022
e82d4dd
Fix typehint syntax
BobDotCom Oct 17, 2022
ed599df
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 17, 2022
4d9af9c
Fix typehints
BobDotCom Oct 17, 2022
d198ca9
Update discord/http.py
Dorukyum Oct 19, 2022
114c181
Merge branch 'master' into forum-tags
Lulalaby Oct 25, 2022
0891c79
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 25, 2022
11afeb7
Update channel.py
Lulalaby Oct 25, 2022
f716176
Update channel.py
Lulalaby Oct 25, 2022
1cde7e1
Merge branch 'master' into forum-tags
Lulalaby Oct 30, 2022
3b72f1d
Merge branch 'master' into forum-tags
Lulalaby Nov 3, 2022
8f9ee26
Update forum tags
Dorukyum Nov 7, 2022
b2483ad
Implement ForumChannel.get_tag
Dorukyum Nov 7, 2022
3fd72af
Merge branch 'master' into forum-tags
Lulalaby Nov 7, 2022
d1da9be
Add sort order, channel flags and total msg
Lulalaby Nov 7, 2022
0b1a082
Fix typehints
Dorukyum Nov 7, 2022
6ec5b7e
Update Thread.applied_tags
Dorukyum Nov 7, 2022
fb76350
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 7, 2022
ad7ea51
Merge branch 'master' into forum-tags
BobDotCom Nov 7, 2022
7f3a5c5
Merge branch 'master' into forum-tags
BobDotCom Nov 7, 2022
253c305
Merge branch 'master' into forum-tags
BobDotCom Nov 8, 2022
00084e2
Implement ForumChannel.requires_tag
Dorukyum Nov 9, 2022
e0acd90
Implement Thread.is_pinned
Dorukyum Nov 9, 2022
582e95c
Update `versionadded`s in docstring
Dorukyum Nov 9, 2022
3714af0
Merge branch 'master' into forum-tags
Lulalaby Nov 9, 2022
ee9c279
Merge branch 'master' into forum-tags
BobDotCom Nov 10, 2022
b47cf02
Merge branch 'master' into forum-tags
Lulalaby Nov 13, 2022
45265c1
Merge branch 'master' into forum-tags
BobDotCom Nov 13, 2022
2d2b993
Merge branch 'master' into forum-tags
Lulalaby Nov 14, 2022
1001c37
Update SortOrder to match API values
Dorukyum Nov 14, 2022
c4acddc
Implement default_sort_order
Dorukyum Nov 14, 2022
acb25b6
Implement default_thread_rate_limit_per_user
Dorukyum Nov 14, 2022
ee64f58
Add new fields to edit routes
Dorukyum Nov 14, 2022
1afd1b2
Rename default_thread_rate_limit_per_user
Dorukyum Nov 15, 2022
6b71d55
Seperate edit methods for text and forum channels
Dorukyum Nov 15, 2022
29db389
Map default_thread_slowmode_delay to valid field
Dorukyum Nov 15, 2022
dc2f63b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 15, 2022
608ce47
Merge branch 'master' into forum-tags
Lulalaby Nov 15, 2022
13ea4d8
Add require_tag field to ForumChannel.edit
Dorukyum Nov 15, 2022
0f17df4
Merge branch 'forum-tags' of https://github.com/Pycord-Development/py…
Dorukyum Nov 15, 2022
094477d
Parse available_tags to dicts in edit
Dorukyum Nov 15, 2022
15f92ae
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 15, 2022
c194e51
Merge branch 'master' into forum-tags
BobDotCom Nov 15, 2022
a603ae8
Merge branch 'master' into forum-tags
BobDotCom Nov 15, 2022
da1a58d
fix: NameError due to TYPE_CHECKING imports
Dorukyum Nov 15, 2022
51587bf
feat: applied_tags field in Thread.edit
Dorukyum Nov 15, 2022
3d0c099
Merge branch 'forum-tags' of https://github.com/Pycord-Development/py…
Dorukyum Nov 15, 2022
86d6656
Merge branch 'master' into forum-tags
Lulalaby Nov 16, 2022
70a9814
Merge branch 'master' into forum-tags
Lulalaby Nov 17, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions discord/types/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@ class TextChannel(_BaseGuildChannel, _TextChannelOptional):
type: Literal[0]


class ForumTag(TypedDict):
id: Snowflake
name: str
moderated: bool
emoji_id: Snowflake
emoji_name: str
Dorukyum marked this conversation as resolved.
Show resolved Hide resolved


class ForumChannel(_BaseGuildChannel, _TextChannelOptional):
type: Literal[15]

Expand Down