Repository navigation
Conversation
Discord cannot convert a text channel into a forum, so making #general thread-only means creating a new forum channel in the General category. The existing #general text channel is left untouched and must be retired by hand once people have moved over.
Replace the new forum channel with a policy on the existing #general text channel: @everyone is denied SEND_MESSAGES and allowed CREATE_PUBLIC_THREADS and SEND_MESSAGES_IN_THREADS, so members can only start threads and reply in them. Moderators and community managers keep SEND_MESSAGES. Add permissionOverwrites to channel entries to support this. Pulumi owns only the declared permissions: other bits on the same overwrite and overwrites for other roles or members are preserved, and permissions removed from config are cleared on the next deploy.
This branch had an error being deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Makes the existing
#generaltext channel thread-only in place, using channel permission overwrites. The channel keeps its ID and history.@everyone: deny Send Messages; allow Create Public Threads and Send Messages in ThreadsTo support this, channel entries in
channels.tscan now declarepermissionOverwrites. Only the declared permissions are managed; other overwrites on the channel are left alone.Before deploying, the bot needs Manage Roles, Send Messages, Create Public Threads and Send Messages in Threads.