mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
add deleteserver
This commit is contained in:
@@ -44,6 +44,12 @@ export function createServer(options: CreateServerOptions) {
|
||||
return RequestManager.post(endpoints.GUILDS, options);
|
||||
}
|
||||
|
||||
/** Delete a guild permanently. User must be owner. Returns 204 No Content on success. Fires a Guild Delete Gateway event.
|
||||
*/
|
||||
export function deleteServer(guildID: string) {
|
||||
return RequestManager.delete(endpoints.GUILD(guildID));
|
||||
}
|
||||
|
||||
/** Gets an array of all the channels ids that are the children of this category. */
|
||||
export function categoryChildrenIDs(guild: Guild, id: string) {
|
||||
return guild.channels.filter((channel) => channel.parentID === id);
|
||||
|
||||
Reference in New Issue
Block a user