[API] Route: /guilds/:id/archive
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_GUILDSorOPERATORfrom outside that guild,OPERATORcan 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.
~~why shouldn't you be able to unarchive a guild?~~ nvm i misread it
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.