DiscordEndpoint
public enum DiscordEndpoint : CustomStringConvertible
This enum defines the endpoints used to interact with the Discord API.
-
The base url for the Discord REST API.
Declaration
Swift
case baseURL
-
The base channel endpoint.
Declaration
Swift
case channel(id: ChannelID)
-
The base channel messages endpoint.
Declaration
Swift
case messages(channel: ChannelID)
-
The channel bulk delete endpoint.
Declaration
Swift
case bulkMessageDelete(channel: ChannelID)
-
The channel typing endpoint.
Declaration
Swift
case typing(channel: ChannelID)
-
The base channel permissions endpoint.
Declaration
Swift
case permissions(channel: ChannelID)
-
The channel permission endpoint.
Declaration
Swift
case channelPermission(channel: ChannelID, overwrite: OverwriteID)
-
The base endpoint for invites.
Declaration
Swift
case invites(code: String)
-
The base endpoint for channel invites.
Declaration
Swift
case channelInvites(channel: ChannelID)
-
The base endpoint for pinned channel messages.
Declaration
Swift
case pins(channel: ChannelID)
-
The channel webhooks endpoint.
Declaration
Swift
case channelWebhooks(channel: ChannelID)
-
The base guild endpoint.
Declaration
Swift
case guilds(id: GuildID)
-
Guild audit log
Declaration
Swift
case guildAuditLog(id: GuildID)
-
The base endpoint for guild channels.
Declaration
Swift
case guildChannels(guild: GuildID)
-
The base guild members endpoint.
Declaration
Swift
case guildMembers(guild: GuildID)
-
The base guild bans endpoint.
Declaration
Swift
case guildBans(guild: GuildID)
-
The base guild roles endpoint.
Declaration
Swift
case guildRoles(guild: GuildID)
-
The guilds webhooks endpoint.
Declaration
Swift
case guildWebhooks(guild: GuildID)
-
The user channels endpoint.
Declaration
Swift
case userChannels
-
The user guilds endpoint.
Declaration
Swift
case userGuilds
-
The single webhook endpoint.
Declaration
Swift
case webhook(id: WebhookID)
-
The single webhook with token endpoint.
Declaration
Swift
case webhookWithToken(id: WebhookID, token: String)
-
A slack compatible webhook.
Declaration
Swift
case webhookSlack(id: WebhookID, token: String)
-
A GitHub compatible webhook.
Declaration
Swift
case webhookGithub(id: WebhookID, token: String)
-
An HTTP Request for an Endpoint. This includes any associated data.
See moreDeclaration
Swift
public enum EndpointRequest
-
Declaration
Swift
public var description: String