Skip to content

GuildNode

Defined in: packages/core/src/api.ts:106

A place in Discord’s REST API. Send a request with get, post, put, patch or delete. Read is what get returns; Write is what post and patch return (the same, except on a list, where posting makes one item).

auditLogs: Route<APIAuditLog>

Defined in: packages/core/src/api.ts:114


bans: ListRoute<APIBan> & Pick1<Route<APIBan, APIBan>>

Defined in: packages/core/src/api.ts:110


channels: Route<APIChannel[], APIChannel>

Defined in: packages/core/src/api.ts:107


emojis: ListRoute<APIEmoji> & Pick1<Route<APIEmoji, APIEmoji>>

Defined in: packages/core/src/api.ts:111


invites: ListRoute<APIInvite>

Defined in: packages/core/src/api.ts:112


members: MembersRoute

Defined in: packages/core/src/api.ts:108


readonly path: string

Defined in: packages/core/src/api.ts:58

The path this route stands for, such as /guilds/123/members.

Route.path


preview: Route

Defined in: packages/core/src/api.ts:115


roles: ListRoute<APIRole> & Pick1<Route<APIRole, APIRole>>

Defined in: packages/core/src/api.ts:109


webhooks: ListRoute<APIWebhook>

Defined in: packages/core/src/api.ts:113

delete<R>(options?): Promise<R>

Defined in: packages/core/src/api.ts:63

R = void

RouteOptions

Promise<R>

Route.delete


get<R>(options?): Promise<R>

Defined in: packages/core/src/api.ts:59

R = APIGuild

RouteOptions

Promise<R>

Route.get


patch<R>(body?, options?): Promise<R>

Defined in: packages/core/src/api.ts:62

R = APIGuild

unknown

RouteOptions

Promise<R>

Route.patch


post<R>(body?, options?): Promise<R>

Defined in: packages/core/src/api.ts:60

R = APIGuild

unknown

RouteOptions

Promise<R>

Route.post


put<R>(body?, options?): Promise<R>

Defined in: packages/core/src/api.ts:61

R = void

unknown

RouteOptions

Promise<R>

Route.put