-
Notifications
You must be signed in to change notification settings - Fork 189
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(channel): add default forum layout #942
Merged
Merged
Conversation
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
EmreTech
changed the title
feat: Add support for forum default forum layout
feat(forum channels): default forum layout
Dec 9, 2022
EmreTech
added
p: low
Priority: low - not important to be worked on
s: awaiting review
Status: the issue or PR is awaiting reviews
t: api coverage
Type: api coverage - this adds code to cover the discord API
labels
Dec 9, 2022
EmreTech
requested changes
Dec 9, 2022
EmreTech
added
p: medium
Priority: medium - should be worked on in the near future
and removed
p: low
Priority: low - not important to be worked on
labels
Dec 9, 2022
ooliver1
changed the title
feat(forum channels): default forum layout
feat(channel): add default forum layout
Dec 11, 2022
ooliver1
requested changes
Dec 11, 2022
ooliver1
added
the
s: waiting for discord
status: the issue requires changes to the documentation or behaviour before it can be completed.
label
Dec 11, 2022
Could this be updated to the naming and nullability shown in discord/discord-api-docs#5745 - no idea why they just superseeded it. |
ooliver1
added
s: requested changes
Status: the PR has some pending requested changes
2.4
The issue/PR should go for the 2.4 release
and removed
s: awaiting review
Status: the issue or PR is awaiting reviews
s: waiting for discord
status: the issue requires changes to the documentation or behaviour before it can be completed.
labels
Dec 14, 2022
Co-Authored-By: Emre Terzioglu <50607143+EmreTech@users.noreply.github.com> Co-Authored-By: Oliver Wilkes <oliverwilkes2006@icloud.com>
Soheab
requested review from
ooliver1 and
EmreTech
and removed request for
ooliver1
January 22, 2023 17:17
Skelmis
approved these changes
Jan 31, 2023
ooliver1
requested changes
Feb 7, 2023
Co-Authored-By: Oliver Wilkes <oliverwilkes2006@icloud.com>
ooliver1
requested changes
Feb 12, 2023
Co-Authored-By: Oliver Wilkes <oliverwilkes2006@icloud.com>
Co-Authored-By: Oliver Wilkes <oliverwilkes2006@icloud.com>
Co-Authored-By: Oliver Wilkes <oliverwilkes2006@icloud.com>
ooliver1
approved these changes
Feb 15, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested
@bot.slash_command()
async def test(inter: Interaction):
# Why would Discord not allow you to set on creation?
assert inter.guild is not None
forum_channel = await inter.guild.create_forum_channel("test", topic="test2")
assert forum_channel.default_forum_layout is ForumLayoutType.not_set
forum_channel = await forum_channel.edit(default_forum_layout=ForumLayoutType.gallery)
assert (
forum_channel.default_forum_layout is ForumLayoutType.gallery
), forum_channel.default_forum_layout
await forum_channel.delete()
await inter.response.send_message("Done")
EmreTech
approved these changes
Feb 16, 2023
EmreTech
removed
the
s: requested changes
Status: the PR has some pending requested changes
label
Feb 16, 2023
7 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
2.4
The issue/PR should go for the 2.4 release
p: medium
Priority: medium - should be worked on in the near future
t: api coverage
Type: api coverage - this adds code to cover the discord API
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
#936
Checklist
task pyright
and fixed the relevant issues.