server icon indicating copy to clipboard operation
server copied to clipboard

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

Open erkinalp opened this issue 4 years ago • 2 comments

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.

erkinalp avatar Sep 14 '21 19:09 erkinalp

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

samuelscheit avatar Sep 14 '21 19:09 samuelscheit

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.

erkinalp avatar Sep 14 '21 19:09 erkinalp