Skip to content

feat: Add spoiler channel flag and functions#3252

Draft
ToothyDev wants to merge 2 commits into
masterfrom
feat/spoiler-channels
Draft

feat: Add spoiler channel flag and functions#3252
ToothyDev wants to merge 2 commits into
masterfrom
feat/spoiler-channels

Conversation

@ToothyDev

@ToothyDev ToothyDev commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Summary

This adds ChannelFlags.is_spoiler_channel (following https://docs.discord.food/resources/channel#channel-flags) as well as a .is_spoiler() function to all applicable channel types (all except category).

Channel editing with this flag is also functional, although stage channels seem to be special in that they have the options of nsfw and spoiler in the client, but it seems to have no effect. Thus I skipped adding it there for the time being, as nsfw is also not documented as a valid edit option for stage channels as of now.

Information

  • This PR fixes an issue.
  • This PR adds something new (e.g. new method or parameters).
  • This PR is a breaking change (e.g. methods or parameters removed/renamed).
  • This PR is not a code change (e.g. documentation, README, typehinting,
    examples, ...).

Checklist

  • I have searched the open pull requests for duplicates.
  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • If type: ignore comments were used, a comment is also left explaining why.
  • I have updated the changelog to include these changes.
  • AI Usage has been disclosed.
    • If AI has been used, I understand fully what the code does

@ToothyDev ToothyDev added upcoming discord feature Involves a feature not yet fully released by Discord on hold labels Jun 5, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Pycord Jun 5, 2026
@pycord-app

pycord-app Bot commented Jun 5, 2026

Copy link
Copy Markdown

Thanks for opening this pull request!
Please make sure you have read the Contributing Guidelines and Code of Conduct.

This pull request can be checked-out with:

git fetch origin pull/3252/head:pr-3252
git checkout pr-3252

This pull request can be installed with:

pip install git+https://github.com/Pycord-Development/pycord@refs/pull/3252/head

@ToothyDev ToothyDev added the hold: testing This pull request requires further testing label Jun 5, 2026

@Lulalaby Lulalaby left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

take a shower <3

@Lulalaby Lulalaby left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

took a shower apparently

@Lulalaby Lulalaby left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can someone request changes reminding me to add editing & creating channels with that flag
and whatever else i may have forgotten

@Soheab Soheab left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a way for bots to create this kind of channel

This message was sponsored by toothyfernsan on discord.

@Soheab Soheab added hold: changelog This pull request is missing a changelog entry and removed hold: changelog This pull request is missing a changelog entry labels Jun 5, 2026
@ToothyDev

Copy link
Copy Markdown
Contributor Author

I tested it with all but MediaChannels since I don't have access to those anywhere, but I'd still like a second pair of testing eyes on this

@ToothyDev ToothyDev moved this from Todo to In Progress in Pycord Jun 5, 2026
@ToothyDev

Copy link
Copy Markdown
Contributor Author

Also, creating a channel with this turned on isn't possible unfortunately, gotta create + edit

@Paillat-dev Paillat-dev added this to the 2.9.0rc1 milestone Jun 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hold: testing This pull request requires further testing on hold upcoming discord feature Involves a feature not yet fully released by Discord

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

4 participants