API endpoints to promote a thread into a toplevel guild channel or demote a toplevel guild channel to a thread #5959
Unanswered
erkinalp
asked this question in
API Feature Requests & Ideas
Replies: 1 comment
-
If this even becomes a thing, instead of introducing 2 new endpoints, it'd be better to use the existing |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In many guilds, a few thread channels gradually gain prominence, which makes it into an ongoing discussion, which make them have even more activity than toplevel channels they are in. For this purpose, I am hereby proposing two API endpoints:
Promote thread to toplevel:
POST /channels/:id/promote
Permissions:
MANAGE_GUILD
andMANAGE_CHANNELS
on all affected channelsPreconditions: Public threads and news threads can be promoted. Public thread gets promoted to guild-text, news thread gets promoted to announcement.
Postconditions: On success, returns 200 and the new channel object. The promoted channel is positioned just after its former parent. Membership data is retained. Thread starter messages are retained.
Reparent thread/demote toplevel channel:
MOVE /channels/:id
Arguments: Takes the destination channel in the form of the header
Destination: /channels/:id
.Permissions:
MANAGE_GUILD
andMANAGE_CHANNELS
on all affected channelsPreconditions: Text and announcement channels can be demoted. Guild gets demoted to public thread, announcement gets demoted to news thread. Public thread, private thread, news thread channels can be reparented to other guild text channels.
Postconditions: On success, returns 200 and the new channel object with the parent stated in the Destination. System messages are retained.
Beta Was this translation helpful? Give feedback.
All reactions