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

[API] Route: /guilds/:id/archive #362

Open
erkinalp opened this issue Sep 14, 2021 · 2 comments
Open

[API] Route: /guilds/:id/archive #362

erkinalp opened this issue Sep 14, 2021 · 2 comments
Labels
Enhancement New feature or request Module: API Route All route issues

Comments

@erkinalp
Copy link
Contributor

erkinalp commented Sep 14, 2021

Archiving a guild would freeze it as read-only to everyone including the guild owner. Can be used by the guild owner (in owned guilds) or those with server-wide MANAGE_GUILDS.

  • If invoked by guild owner, guild owner can unarchive.
  • If invoked by MANAGE_GUILDS or OPERATOR from outside that guild, OPERATOR can unarchive.

To archive, send a PUT request to the endpoint. To unarchive, send a DELETE request.
An archived guild has all its mass invites invalidated but users previously joined by those not kicked. User-specific invites remain valid but unusable until unarchived.

@SamuelScheit
Copy link
Member

SamuelScheit commented Sep 14, 2021

why shouldn't you be able to unarchive a guild? nvm i misread it

@SamuelScheit SamuelScheit added Module: API Enhancement New feature or request medium priority Route All route issues labels Sep 14, 2021
@erkinalp
Copy link
Contributor Author

why shouldn't you be able to unarchive a guild?

(in owned guilds) part is to allow for support for ownerless or multiple owned guilds in future. In those, only server operators will have a power to (un)archive it by default.

@SamuelScheit SamuelScheit mentioned this issue Sep 19, 2021
25 tasks
@SamuelScheit SamuelScheit added this to the Milestone V2 milestone Sep 19, 2021
@DiegoMagdaleno DiegoMagdaleno changed the title Route: /guilds/:id/archive [API] Route: /guilds/:id/archive Oct 6, 2021
@SamuelScheit SamuelScheit modified the milestones: Milestone V2, Discord Extension Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Module: API Route All route issues
Projects
None yet
Development

No branches or pull requests

4 participants