import { type User } from "https://deno.land/x/tpy@v1.0.0-pre-release-9/mod.ts";
const { Allowed } = User.GET.Guilds;
Response schema for GET /user/guilds
.
Returns all guilds where the user can edit with Pylon.
More specifically, all guilds which the user has manage server
or administrator
permissions in. The site says this
directly when adding a guild
and scrolling all the way down:
Don’t see the guild you’re looking for? Ensure you have the “Administrator” or “Manage Server” permission!
definition: Array<Unpacked<Available> & { nick: string | null; }>