Index
Modules:
dimscord
,
dimscord/constants
,
dimscord/dispatch
,
dimscord/gateway
,
dimscord/helpers
,
dimscord/objects
,
dimscord/restapi
,
dimscord/restapi/requester
,
dimscord/restapi/user
,
dimscord/voice
.
API symbols
`$`:
helpers: `$`(g: GuildChannel): string
helpers: `$`(u: User): string
objects: `$`(e: Emoji): string
`%%*`:
objects: `%%*`(a: ApplicationCommandOption): JsonNode
`%`:
requester: `%`(o: Overwrite): JsonNode
requester: `%`(flags: set[PermissionFlags]): JsonNode
`@`:
helpers: `@`(g: GuildChannel): string
helpers: `@`(r: Role): string
helpers: `@`(u: User; nick = false): string
acotBool:
ApplicationCommandOptionType.acotBool
acotChannel:
ApplicationCommandOptionType.acotChannel
acotInt:
ApplicationCommandOptionType.acotInt
acotRole:
ApplicationCommandOptionType.acotRole
acotStr:
ApplicationCommandOptionType.acotStr
acotSubCommand:
ApplicationCommandOptionType.acotSubCommand
acotSubCommandGroup:
ApplicationCommandOptionType.acotSubCommandGroup
acotUser:
ApplicationCommandOptionType.acotUser
Activity:
objects: Activity
ActivityFlags:
constants: ActivityFlags
ActivityStatus:
objects: ActivityStatus
ActivityType:
constants: ActivityType
addChannelMessagePin:
restapi: addChannelMessagePin(api: RestApi; channel_id, message_id: string; reason = ""): owned( Future[void])
addGuildMember:
restapi: addGuildMember(api: RestApi; guild_id, user_id, access_token: string; nick = none string; roles = none seq[string]; mute, deaf = none bool; reason = ""): Future[ tuple[member: Member, exists: bool]]
addGuildMemberRole:
restapi: addGuildMemberRole(api: RestApi; guild_id, user_id, role_id: string; reason = ""): owned( Future[void])
user: addGuildMemberRole(api: RestApi; guild_id, user_id, role_id: string; reason = ""): owned( Future[void])
addMessageReaction:
restapi: addMessageReaction(api: RestApi; channel_id, message_id, emoji: string): owned( Future[void])
afInstance:
ActivityFlags.afInstance
afJoin:
ActivityFlags.afJoin
afJoinRequest:
ActivityFlags.afJoinRequest
afPlay:
ActivityFlags.afPlay
afSpectate:
ActivityFlags.afSpectate
afSync:
ActivityFlags.afSync
alcBool:
AuditLogChangeType.alcBool
alcInt:
AuditLogChangeType.alcInt
alcNil:
AuditLogChangeType.alcNil
alcOverwrites:
AuditLogChangeType.alcOverwrites
alcRoles:
AuditLogChangeType.alcRoles
alcString:
AuditLogChangeType.alcString
aleBotAdd:
AuditLogEntryType.aleBotAdd
aleChannelCreate:
AuditLogEntryType.aleChannelCreate
aleChannelDelete:
AuditLogEntryType.aleChannelDelete
aleChannelOverwriteCreate:
AuditLogEntryType.aleChannelOverwriteCreate
aleChannelOverwriteDelete:
AuditLogEntryType.aleChannelOverwriteDelete
aleChannelOverwriteUpdate:
AuditLogEntryType.aleChannelOverwriteUpdate
aleChannelUpdate:
AuditLogEntryType.aleChannelUpdate
aleEmojiCreate:
AuditLogEntryType.aleEmojiCreate
aleEmojiDelete:
AuditLogEntryType.aleEmojiDelete
aleEmojiUpdate:
AuditLogEntryType.aleEmojiUpdate
aleGuildUpdate:
AuditLogEntryType.aleGuildUpdate
aleIntegrationCreate:
AuditLogEntryType.aleIntegrationCreate
aleIntegrationDelete:
AuditLogEntryType.aleIntegrationDelete
aleIntegrationUpdate:
AuditLogEntryType.aleIntegrationUpdate
aleInviteCreate:
AuditLogEntryType.aleInviteCreate
aleInviteDelete:
AuditLogEntryType.aleInviteDelete
aleInviteUpdate:
AuditLogEntryType.aleInviteUpdate
aleMemberBanAdd:
AuditLogEntryType.aleMemberBanAdd
aleMemberBanRemove:
AuditLogEntryType.aleMemberBanRemove
aleMemberDisconnect:
AuditLogEntryType.aleMemberDisconnect
aleMemberKick:
AuditLogEntryType.aleMemberKick
aleMemberMove:
AuditLogEntryType.aleMemberMove
aleMemberPrune:
AuditLogEntryType.aleMemberPrune
aleMemberRoleUpdate:
AuditLogEntryType.aleMemberRoleUpdate
aleMemberUpdate:
AuditLogEntryType.aleMemberUpdate
aleMessageBulkDelete:
AuditLogEntryType.aleMessageBulkDelete
aleMessageDelete:
AuditLogEntryType.aleMessageDelete
aleMessagePin:
AuditLogEntryType.aleMessagePin
aleMessageUnpin:
AuditLogEntryType.aleMessageUnpin
aleRoleCreate:
AuditLogEntryType.aleRoleCreate
aleRoleDelete:
AuditLogEntryType.aleRoleDelete
aleRoleUpdate:
AuditLogEntryType.aleRoleUpdate
aleWebhookCreate:
AuditLogEntryType.aleWebhookCreate
aleWebhookDelete:
AuditLogEntryType.aleWebhookDelete
aleWebhookUpdate:
AuditLogEntryType.aleWebhookUpdate
AllowedMentions:
objects: AllowedMentions
Application:
objects: Application
ApplicationCommand:
objects: ApplicationCommand
ApplicationCommandInteractionData:
objects: ApplicationCommandInteractionData
ApplicationCommandInteractionDataOption:
objects: ApplicationCommandInteractionDataOption
ApplicationCommandOption:
objects: ApplicationCommandOption
ApplicationCommandOptionChoice:
objects: ApplicationCommandOptionChoice
ApplicationCommandOptionType:
constants: ApplicationCommandOptionType
atCustom:
ActivityType.atCustom
atListening:
ActivityType.atListening
atPlaying:
ActivityType.atPlaying
atStreaming:
ActivityType.atStreaming
Attachment:
objects: Attachment
atWatching:
ActivityType.atWatching
AuditLog:
objects: AuditLog
AuditLogChangeType:
constants: AuditLogChangeType
AuditLogChangeValue:
objects: AuditLogChangeValue
AuditLogEntry:
objects: AuditLogEntry
AuditLogEntryType:
constants: AuditLogEntryType
AuditLogOptions:
objects: AuditLogOptions
avatarUrl:
helpers: avatarUrl(u: User; fmt = "png"; size = 128): string
beginGuildPrune:
restapi: beginGuildPrune(api: RestApi; guild_id: string; days = 7; compute_prune_count = true; reason = ""): owned(Future[void])
bulkDeleteMessages:
restapi: bulkDeleteMessages(api: RestApi; channel_id: string; message_ids: seq[string]; reason = ""): owned(Future[void])
CacheError:
objects: CacheError
CacheTable:
objects: CacheTable
CacheTablePrefs:
objects: CacheTablePrefs
cdnAppAssets:
constants: cdnAppAssets
cdnAppIcons:
constants: cdnAppIcons
cdnAttachments:
constants: cdnAttachments
cdnAvatars:
constants: cdnAvatars
cdnBase:
constants: cdnBase
cdnChannelIcons:
constants: cdnChannelIcons
cdnCustomEmojis:
constants: cdnCustomEmojis
cdnDefaultUserAvatars:
constants: cdnDefaultUserAvatars
cdnDiscoverySplashes:
constants: cdnDiscoverySplashes
cdnIcons:
constants: cdnIcons
cdnSplashes:
constants: cdnSplashes
cdnTeamIcons:
constants: cdnTeamIcons
Channel:
objects: Channel
ChannelType:
constants: ChannelType
clear:
objects: clear(c: CacheTable)
computePerms:
helpers: computePerms(guild: Guild; member: Member): PermObj
helpers: computePerms(guild: Guild; member: Member; channel: GuildChannel): PermObj
helpers: computePerms(guild: Guild; role: Role): PermObj
createBotInvite:
helpers: createBotInvite(client_id: string; permissions: set[PermissionFlags] = {}; guild_id = ""; disable_guild_select = false): string
createChannelInvite:
restapi: createChannelInvite(api: RestApi; channel_id: string; max_age = 86400; max_uses = 0; temp, unique = false; target_user = none string; target_user_type = none int; reason = ""): Future[Invite]
createGroupDm:
restapi: createGroupDm(api: RestApi; access_tokens: seq[string]; nicks: Table[string, string]): Future[DMChannel]
user: createGroupDm(api: RestApi; access_tokens: seq[string]; nicks: Table[string, string]): Future[DMChannel]
createGuild:
restapi: createGuild(api: RestApi; name, region = none string; icon, afk_channel_id, system_channel_id = none string; verification_level, default_message_notifications = none int; afk_timeout, explicit_content_filter = none int; roles = none seq[Role]; channels = none seq[Channel]): Future[Guild]
createGuildBan:
restapi: createGuildBan(api: RestApi; guild_id, user_id: string; deletemsgdays = 0; reason = ""): owned(Future[void])
createGuildChannel:
restapi: createGuildChannel(api: RestApi; guild_id, name: string; kind = 0; parent_id, topic = none string; nsfw = none bool; rate_limit_per_user, bitrate, position, user_limit = none int; permission_overwrites = none seq[Overwrite]; reason = ""): Future[ GuildChannel]
createGuildEmoji:
restapi: createGuildEmoji(api: RestApi; guild_id, name, image: string; roles: seq[string] = @[]; reason = ""): Future[Emoji]
createGuildFromTemplate:
restapi: createGuildFromTemplate(api: RestApi; code: string): Future[Guild]
createGuildRole:
restapi: createGuildRole(api: RestApi; guild_id: string; name = "new role"; hoist, mentionable = false; permissions: PermObj; color = 0; reason = ""): Future[Role]
createGuildTemplate:
restapi: createGuildTemplate(api: RestApi; guild_id, name: string; description = none string): Future[GuildTemplate]
createInteractionResponse:
restapi: createInteractionResponse(api: RestApi; interaction_id, interaction_token: string; response: InteractionResponse): owned(Future[void])
user: createInteractionResponse(api: RestApi; interaction_id, interaction_token: string; response: InteractionResponse): owned(Future[void])
createUserDm:
restapi: createUserDm(api: RestApi; user_id: string): Future[DMChannel]
user: createUserDm(api: RestApi; user_id: string): Future[DMChannel]
createWebhook:
restapi: createWebhook(api: RestApi; channel_id, username: string; avatar = none string; reason = ""): Future[Webhook]
crosspostMessage:
restapi: crosspostMessage(api: RestApi; channel_id, message_id: string): Future[Message]
ctDirect:
ChannelType.ctDirect
ctGroupDM:
ChannelType.ctGroupDM
ctGuildNews:
ChannelType.ctGuildNews
ctGuildParent:
ChannelType.ctGuildParent
ctGuildStore:
ChannelType.ctGuildStore
ctGuildText:
ChannelType.ctGuildText
ctGuildVoice:
ChannelType.ctGuildVoice
defaultAvatarUrl:
helpers: defaultAvatarUrl(u: User): string
deleteAllMessageReactions:
restapi: deleteAllMessageReactions(api: RestApi; channel_id, message_id: string): owned( Future[void])
deleteApplicationCommand:
restapi: deleteApplicationCommand(api: RestApi; application_id, command_id: string; guild_id = ""): owned(Future[void])
user: deleteApplicationCommand(api: RestApi; application_id, command_id: string; guild_id = ""): owned(Future[void])
deleteChannel:
restapi: deleteChannel(api: RestApi; channel_id: string; reason = ""): owned(Future[void])
deleteChannelMessagePin:
restapi: deleteChannelMessagePin(api: RestApi; channel_id, message_id: string; reason = ""): owned(Future[void])
deleteGuild:
restapi: deleteGuild(api: RestApi; guild_id: string): owned(Future[void])
deleteGuildChannelPermission:
restapi: deleteGuildChannelPermission(api: RestApi; channel_id, overwrite: string; reason = ""): owned(Future[void])
deleteGuildEmoji:
restapi: deleteGuildEmoji(api: RestApi; guild_id, emoji_id: string; reason = ""): owned( Future[void])
deleteGuildIntegration:
restapi: deleteGuildIntegration(api: RestApi; integ_id: string; reason = ""): owned( Future[void])
deleteGuildRole:
restapi: deleteGuildRole(api: RestApi; guild_id, role_id: string): owned(Future[void])
deleteGuildTemplate:
restapi: deleteGuildTemplate(api: RestApi; guild_id, code: string): Future[GuildTemplate]
deleteInvite:
restapi: deleteInvite(api: RestApi; code: string; reason = ""): owned(Future[void])
deleteMessage:
restapi: deleteMessage(api: RestApi; channel_id, message_id: string; reason = ""): owned( Future[void])
deleteMessageReaction:
restapi: deleteMessageReaction(api: RestApi; channel_id, message_id, emoji: string; user_id = "@me"): owned(Future[void])
deleteMessageReactionEmoji:
restapi: deleteMessageReactionEmoji(api: RestApi; channel_id, message_id, emoji: string): owned( Future[void])
deleteWebhook:
restapi: deleteWebhook(api: RestApi; webhook_id: string; reason = ""): owned(Future[void])
deleteWebhookMessage:
restapi: deleteWebhookMessage(api: RestApi; webhook_id, webhook_token, message_id: string): owned( Future[void])
disconnect:
gateway: disconnect(s: Shard; should_reconnect = true): owned(Future[void])
voice: disconnect(v: VoiceClient): owned(Future[void])
DiscordClient:
objects: DiscordClient
DiscordFile:
objects: DiscordFile
DMChannel:
objects: DMChannel
ecfAllMembers:
ExplicitContentFilter.ecfAllMembers
ecfDisabled:
ExplicitContentFilter.ecfDisabled
ecfMembersWithoutRoles:
ExplicitContentFilter.ecfMembersWithoutRoles
editApplicationCommand:
restapi: editApplicationCommand(api: RestApi; application_id, command_id: string; guild_id = ""; name, description: string; options: seq[ApplicationCommandOption] = @[]): Future[ ApplicationCommand]
user: editApplicationCommand(api: RestApi; application_id, command_id: string; guild_id = ""; name, description: string; options: seq[ApplicationCommandOption] = @[]): Future[ ApplicationCommand]
editCurrentUser:
restapi: editCurrentUser(api: RestApi; username, avatar = none string): Future[User]
user: editCurrentUser(api: RestApi; username, avatar = none string): Future[User]
editGuild:
restapi: editGuild(api: RestApi; guild_id: string; name, region, afk_channel_id, icon = none string; discovery_splash, owner_id, splash, banner = none string; system_channel_id, rules_channel_id = none string; preferred_locale, public_updates_channel_id = none string; verification_level, default_message_notifications = none int; explicit_content_filter, afk_timeout = none int; reason = ""): Future[ Guild]
editGuildChannel:
restapi: editGuildChannel(api: RestApi; channel_id: string; name, parent_id, topic = none string; rate_limit_per_user, bitrate = none int; position, user_limit = none int; permission_overwrites = none seq[Overwrite]; nsfw = none bool; reason = ""): Future[GuildChannel]
editGuildChannelPermissions:
restapi: editGuildChannelPermissions(api: RestApi; channel_id, perm_id, kind: string or int; perms: PermObj; reason = ""): owned(Future[void])
editGuildChannelPositions:
restapi: editGuildChannelPositions(api: RestApi; guild_id, channel_id: string; position = none int; reason = ""): owned(Future[void])
editGuildEmoji:
restapi: editGuildEmoji(api: RestApi; guild_id, emoji_id: string; name = none string; roles = none seq[string]; reason = ""): Future[Emoji]
editGuildIntegration:
restapi: editGuildIntegration(api: RestApi; guild_id, integ_id: string; expire_behavior, expire_grace_period = none int; enable_emoticons = none bool; reason = ""): owned( Future[void])
editGuildMember:
restapi: editGuildMember(api: RestApi; guild_id, user_id: string; nick, channel_id = none string; roles = none seq[string]; mute, deaf = none bool; reason = ""): owned(Future[void])
editGuildRole:
restapi: editGuildRole(api: RestApi; guild_id, role_id: string; name = none string; permissions = none PermObj; color = none int; hoist, mentionable = none bool; reason = ""): Future[Role]
editGuildRolePosition:
restapi: editGuildRolePosition(api: RestApi; guild_id, role_id: string; position = none int; reason = ""): Future[seq[Role]]
editGuildTemplate:
restapi: editGuildTemplate(api: RestApi; guild_id, code: string; name, description = none string): Future[GuildTemplate]
editGuildWidget:
restapi: editGuildWidget(api: RestApi; guild_id: string; enabled = none bool; channel_id = none string): Future[ tuple[enabled: bool, channel_id: Option[string]]]
editMessage:
restapi: editMessage(api: RestApi; channel_id, message_id: string; content = ""; tts = false; flags = none(int); embed = none Embed): Future[Message]
editWebhook:
restapi: editWebhook(api: RestApi; webhook_id: string; name, avatar, channel_id = none string; reason = ""): owned( Future[void])
editWebhookMessage:
restapi: editWebhookMessage(api: RestApi; webhook_id, webhook_token, message_id: string; content = none string; embeds = none array[10, Embed]; allowed_mentions = none AllowedMentions): owned(Future[void])
Embed:
objects: Embed
EmbedAuthor:
objects: EmbedAuthor
EmbedField:
objects: EmbedField
EmbedFooter:
objects: EmbedFooter
EmbedImage:
objects: EmbedImage
EmbedProvider:
objects: EmbedProvider
EmbedThumbnail:
objects: EmbedThumbnail
EmbedVideo:
objects: EmbedVideo
Emoji:
objects: Emoji
endpointBulkDeleteMessages:
constants: endpointBulkDeleteMessages(cid: string): string
endpointChannelInvites:
constants: endpointChannelInvites(cid: string): string
endpointChannelMessages:
constants: endpointChannelMessages(cid: string; mid = ""): string
endpointChannelMessagesCrosspost:
constants: endpointChannelMessagesCrosspost(cid, mid: string): string
endpointChannelOverwrites:
constants: endpointChannelOverwrites(cid, oid: string): string
endpointChannelPermissions:
constants: endpointChannelPermissions(cid, oid: string): string
endpointChannelPins:
constants: endpointChannelPins(cid: string; mid = ""): string
endpointChannels:
constants: endpointChannels(cid = ""): string
endpointChannelWebhooks:
constants: endpointChannelWebhooks(cid: string): string
endpointGlobalCommands:
constants: endpointGlobalCommands(aid: string; cid = ""): string
endpointGroupRecipient:
constants: endpointGroupRecipient(cid, rid: string): string
endpointGuildAuditLogs:
constants: endpointGuildAuditLogs(gid: string): string
endpointGuildBans:
constants: endpointGuildBans(gid: string; uid = ""): string
endpointGuildChannels:
constants: endpointGuildChannels(gid: string; cid = ""): string
endpointGuildCommands:
constants: endpointGuildCommands(aid, gid: string; cid = ""): string
endpointGuildEmojis:
constants: endpointGuildEmojis(gid: string; eid = ""): string
endpointGuildIntegrations:
constants: endpointGuildIntegrations(gid: string; iid = ""): string
endpointGuildIntegrationsSync:
constants: endpointGuildIntegrationsSync(gid, iid: string): string
endpointGuildInvites:
constants: endpointGuildInvites(gid: string): string
endpointGuildMembers:
constants: endpointGuildMembers(gid: string; mid = ""): string
endpointGuildMembersNick:
constants: endpointGuildMembersNick(gid: string; mid = "@me"): string
endpointGuildMembersRole:
constants: endpointGuildMembersRole(gid, mid, rid: string): string
endpointGuildPreview:
constants: endpointGuildPreview(gid: string): string
endpointGuildPrune:
constants: endpointGuildPrune(gid: string): string
endpointGuildRegions:
constants: endpointGuildRegions(gid: string): string
endpointGuildRoles:
constants: endpointGuildRoles(gid: string; rid = ""): string
endpointGuilds:
constants: endpointGuilds(gid = ""): string
endpointGuildTemplates:
constants: endpointGuildTemplates(gid, tid = ""): string
endpointGuildVanity:
constants: endpointGuildVanity(gid: string): string
endpointGuildWebhooks:
constants: endpointGuildWebhooks(gid: string): string
endpointGuildWidget:
constants: endpointGuildWidget(gid: string): string
endpointInteractionsCallback:
constants: endpointInteractionsCallback(iid, it: string): string
endpointInvites:
constants: endpointInvites(code = ""): string
endpointOAuth2Application:
constants: endpointOAuth2Application(): string
endpointReactions:
constants: endpointReactions(cid, mid: string; e, uid = ""): string
endpointTriggerTyping:
constants: endpointTriggerTyping(cid: string): string
endpointUserChannels:
constants: endpointUserChannels(): string
endpointUserGuilds:
constants: endpointUserGuilds(gid: string): string
endpointUsers:
constants: endpointUsers(uid = "@me"): string
endpointVoiceRegions:
constants: endpointVoiceRegions(): string
endpointWebhookMessage:
constants: endpointWebhookMessage(wid, tok, mid: string): string
endpointWebhooks:
constants: endpointWebhooks(wid: string): string
endpointWebhookToken:
constants: endpointWebhookToken(wid, tok: string): string
endpointWebhookTokenGithub:
constants: endpointWebhookTokenGithub(wid, tok: string): string
endpointWebhookTokenSlack:
constants: endpointWebhookTokenSlack(wid, tok: string): string
endSession:
gateway: endSession(discord: DiscordClient): owned(Future[void])
event:
helpers: event(discord: DiscordClient; fn: untyped): untyped
Events:
objects: Events
executeGithubWebhook:
restapi: executeGithubWebhook(api: RestApi; webhook_id, token: string; wait = true): Future[ Message]
executeSlackWebhook:
restapi: executeSlackWebhook(api: RestApi; webhook_id, token: string; wait = true): Future[ Message]
executeWebhook:
restapi: executeWebhook(api: RestApi; webhook_id, webhook_token: string; wait = true; content = ""; tts = false; file = none DiscordFile; embeds = none array[10, Embed]; allowed_mentions = none AllowedMentions; username, avatar_url = none string): Future[Message]
ExplicitContentFilter:
constants: ExplicitContentFilter
GameAssets:
objects: GameAssets
GatewayBot:
objects: GatewayBot
GatewayIntent:
constants: GatewayIntent
GatewaySession:
objects: GatewaySession
getApplicationCommands:
restapi: getApplicationCommands(api: RestApi; application_id: string; guild_id = ""): Future[ seq[ApplicationCommand]]
user: getApplicationCommands(api: RestApi; application_id: string; guild_id = ""): Future[ seq[ApplicationCommand]]
getChannelInvites:
restapi: getChannelInvites(api: RestApi; channel_id: string): Future[seq[Invite]]
getChannelMessage:
restapi: getChannelMessage(api: RestApi; channel_id, message_id: string): Future[Message]
getChannelMessages:
restapi: getChannelMessages(api: RestApi; channel_id: string; around, before, after = ""; limit = 50): Future[seq[Message]]
getChannelPins:
restapi: getChannelPins(api: RestApi; channel_id: string): Future[seq[Message]]
getChannelWebhooks:
restapi: getChannelWebhooks(api: RestApi; channel_id: string): Future[seq[Webhook]]
getCurrentApplication:
restapi: getCurrentApplication(api: RestApi): Future[OAuth2Application]
user: getCurrentApplication(api: RestApi): Future[OAuth2Application]
getCurrentUser:
restapi: getCurrentUser(api: RestApi): Future[User]
user: getCurrentUser(api: RestApi): Future[User]
getGateway:
restapi: getGateway(api: RestApi): Future[string]
user: getGateway(api: RestApi): Future[string]
getGatewayBot:
restapi: getGatewayBot(api: RestApi): Future[GatewayBot]
user: getGatewayBot(api: RestApi): Future[GatewayBot]
getGuild:
restapi: getGuild(api: RestApi; guild_id: string; with_counts = false): Future[Guild]
getGuildAuditLogs:
restapi: getGuildAuditLogs(api: RestApi; guild_id: string; user_id, before = ""; action_type = -1; limit = 50): Future[AuditLog]
getGuildBan:
restapi: getGuildBan(api: RestApi; guild_id, user_id: string): Future[GuildBan]
getGuildBans:
restapi: getGuildBans(api: RestApi; guild_id: string): Future[seq[GuildBan]]
getGuildChannel:
restapi: getGuildChannel(api: RestApi; guild_id, channel_id: string): Future[GuildChannel]
getGuildChannels:
restapi: getGuildChannels(api: RestApi; guild_id: string): Future[seq[GuildChannel]]
getGuildIntegrations:
restapi: getGuildIntegrations(api: RestApi; guild_id: string): Future[seq[Integration]]
getGuildInvites:
restapi: getGuildInvites(api: RestApi; guild_id: string): Future[seq[InviteMetadata]]
getGuildMember:
restapi: getGuildMember(api: RestApi; guild_id, user_id: string): Future[Member]
user: getGuildMember(api: RestApi; guild_id, user_id: string): Future[Member]
getGuildMembers:
restapi: getGuildMembers(api: RestApi; guild_id: string; limit = 1; after = "0"): Future[ seq[Member]]
user: getGuildMembers(api: RestApi; guild_id: string; limit = 1; after = "0"): Future[ seq[Member]]
getGuildPreview:
restapi: getGuildPreview(api: RestApi; guild_id: string): Future[GuildPreview]
getGuildPruneCount:
restapi: getGuildPruneCount(api: RestApi; guild_id: string; days: int): Future[int]
getGuildRoles:
restapi: getGuildRoles(api: RestApi; guild_id: string): Future[seq[Role]]
getGuildTemplate:
restapi: getGuildTemplate(api: RestApi; code: string): Future[GuildTemplate]
getGuildVanityUrl:
restapi: getGuildVanityUrl(api: RestApi; guild_id: string): Future[ tuple[code: Option[string], uses: int]]
getGuildVoiceRegions:
restapi: getGuildVoiceRegions(api: RestApi; guild_id: string): Future[seq[VoiceRegion]]
getGuildWebhooks:
restapi: getGuildWebhooks(api: RestApi; guild_id: string): Future[seq[Webhook]]
getGuildWidget:
helpers: getGuildWidget(guild_id, style: string): string
restapi: getGuildWidget(api: RestApi; guild_id: string): Future[GuildWidgetJson]
getInvite:
restapi: getInvite(api: RestApi; code: string; with_counts, auth = false): Future[Invite]
user: getInvite(api: RestApi; code: string; with_counts, auth = false): Future[Invite]
getMessageReactions:
restapi: getMessageReactions(api: RestApi; channel_id, message_id, emoji: string; before, after = ""; limit = 25): Future[seq[User]]
getUser:
restapi: getUser(api: RestApi; user_id: string): Future[User]
user: getUser(api: RestApi; user_id: string): Future[User]
getVoiceRegions:
restapi: getVoiceRegions(api: RestApi): Future[seq[VoiceRegion]]
getWebhook:
restapi: getWebhook(api: RestApi; webhook_id: string): Future[Webhook]
giDirectMessageReactions:
GatewayIntent.giDirectMessageReactions
giDirectMessages:
GatewayIntent.giDirectMessages
giDirectMessageTyping:
GatewayIntent.giDirectMessageTyping
giGuildBans:
GatewayIntent.giGuildBans
giGuildEmojis:
GatewayIntent.giGuildEmojis
giGuildIntegrations:
GatewayIntent.giGuildIntegrations
giGuildInvites:
GatewayIntent.giGuildInvites
giGuildMembers:
GatewayIntent.giGuildMembers
giGuildMessageReactions:
GatewayIntent.giGuildMessageReactions
giGuildMessages:
GatewayIntent.giGuildMessages
giGuildMessageTyping:
GatewayIntent.giGuildMessageTyping
giGuildPresences:
GatewayIntent.giGuildPresences
giGuilds:
GatewayIntent.giGuilds
giGuildVoiceStates:
GatewayIntent.giGuildVoiceStates
giGuildWebhooks:
GatewayIntent.giGuildWebhooks
Guild:
objects: Guild
GuildBan:
objects: GuildBan
GuildChannel:
objects: GuildChannel
GuildMembersChunk:
objects: GuildMembersChunk
GuildPreview:
objects: GuildPreview
GuildTemplate:
objects: GuildTemplate
GuildWidgetJson:
objects: GuildWidgetJson
handleEventDispatch:
dispatch: handleEventDispatch(s: Shard; event: string; data: JsonNode): owned(Future[void])
iconUrl:
helpers: iconUrl(e: Emoji; fmt = "png"; size = 128): string
helpers: iconUrl(g: Guild; fmt = "png"; size = 128): string
iebKick:
IntegrationExpireBehavior.iebKick
iebRemoveRole:
IntegrationExpireBehavior.iebRemoveRole
Integration:
objects: Integration
IntegrationExpireBehavior:
constants: IntegrationExpireBehavior
Interaction:
objects: Interaction
InteractionApplicationCommandCallbackData:
objects: InteractionApplicationCommandCallbackData
InteractionResponse:
objects: InteractionResponse
InteractionResponseType:
constants: InteractionResponseType
InteractionType:
constants: InteractionType
Invite:
objects: Invite
InviteCreate:
objects: InviteCreate
InviteMetadata:
objects: InviteMetadata
irtAcknowledge:
InteractionResponseType.irtAcknowledge
irtAckWithSource:
InteractionResponseType.irtAckWithSource
irtChannelMessage:
InteractionResponseType.irtChannelMessage
irtChannelMessageWithSource:
InteractionResponseType.irtChannelMessageWithSource
irtPong:
InteractionResponseType.irtPong
itApplicationCommand:
InteractionType.itApplicationCommand
itPing:
InteractionType.itPing
keyCheckBool:
objects: keyCheckBool(obj: typed; obj2: typed; lits: varargs[untyped]): untyped
keyCheckOptBool:
objects: keyCheckOptBool(obj: typed; obj2: typed; lits: varargs[untyped]): untyped
keyCheckOptInt:
objects: keyCheckOptInt(obj: typed; obj2: typed; lits: varargs[untyped]): untyped
keyCheckOptStr:
objects: keyCheckOptStr(obj: typed; obj2: typed; lits: varargs[untyped]): untyped
keyCheckStr:
objects: keyCheckStr(obj: typed; obj2: typed; lits: varargs[untyped]): untyped
kind:
objects: kind(c: CacheTable; channel_id: string): ChannelType
latency:
gateway: latency(s: Shard): int
leaveGuild:
restapi: leaveGuild(api: RestApi; guild_id: string): owned(Future[void])
user: leaveGuild(api: RestApi; guild_id: string): owned(Future[void])
libAgent:
constants: libAgent
libName:
constants: libName
libsodium_fn:
voice: libsodium_fn
libVer:
constants: libVer
loadNullableOptInt:
requester: loadNullableOptInt(obj: typed; lits: varargs[untyped]): untyped
loadNullableOptStr:
requester: loadNullableOptStr(obj: typed; lits: varargs[untyped]): untyped
loadOpt:
requester: loadOpt(obj: typed; lits: varargs[untyped]): untyped
log:
constants: log(msg: string)
constants: log(msg: string; info: tuple)
matJoin:
MessageActivityType.matJoin
matJoinRequest:
MessageActivityType.matJoinRequest
matListen:
MessageActivityType.matListen
matSpectate:
MessageActivityType.matSpectate
Member:
objects: Member
MentionChannel:
objects: MentionChannel
Message:
objects: Message
MessageActivityType:
constants: MessageActivityType
MessageFlags:
constants: MessageFlags
MessageNotificationLevel:
constants: MessageNotificationLevel
MessageReference:
objects: MessageReference
MessageStickerFormat:
constants: MessageStickerFormat
MessageType:
constants: MessageType
mfaElevated:
MFALevel.mfaElevated
MFALevel:
constants: MFALevel
mfaNone:
MFALevel.mfaNone
mfCrossposted:
MessageFlags.mfCrossposted
mfIsCrosspost:
MessageFlags.mfIsCrosspost
mfSourceMessageDeleted:
MessageFlags.mfSourceMessageDeleted
mfSupressEmbeds:
MessageFlags.mfSupressEmbeds
mfUrgent:
MessageFlags.mfUrgent
mnlAllMessages:
MessageNotificationLevel.mnlAllMessages
mnlOnlyMentions:
MessageNotificationLevel.mnlOnlyMentions
msfAPng:
MessageStickerFormat.msfAPng
msfLottie:
MessageStickerFormat.msfLottie
msfPng:
MessageStickerFormat.msfPng
mtApplicationCommand:
MessageType.mtApplicationCommand
mtCall:
MessageType.mtCall
mtChannelFollowAdd:
MessageType.mtChannelFollowAdd
mtChannelIconChange:
MessageType.mtChannelIconChange
mtChannelNameChange:
MessageType.mtChannelNameChange
mtChannelPinnedMessage:
MessageType.mtChannelPinnedMessage
mtDefault:
MessageType.mtDefault
mtGuildDiscoveryDisqualified:
MessageType.mtGuildDiscoveryDisqualified
mtGuildDiscoveryRequalified:
MessageType.mtGuildDiscoveryRequalified
mtGuildMemberJoin:
MessageType.mtGuildMemberJoin
mtRecipientAdd:
MessageType.mtRecipientAdd
mtRecipientRemove:
MessageType.mtRecipientRemove
mtReply:
MessageType.mtReply
mtUserGuildBoost:
MessageType.mtUserGuildBoost
mtUserGuildBoostTier1:
MessageType.mtUserGuildBoostTier1
mtUserGuildBoostTier2:
MessageType.mtUserGuildBoostTier2
mtUserGuildBoostTier3:
MessageType.mtUserGuildBoostTier3
newActivity:
objects: newActivity(data: JsonNode): Activity
newApplicationCommand:
objects: newApplicationCommand(data: JsonNode): ApplicationCommand
newApplicationCommandInteractionData:
objects: newApplicationCommandInteractionData(data: JsonNode): ApplicationCommandInteractionData
newApplicationCommandOption:
objects: newApplicationCommandOption(data: JsonNode): ApplicationCommandOption
newAuditLog:
objects: newAuditLog(data: JsonNode): AuditLog
newDiscordClient:
objects: newDiscordClient(token: string; rest_mode = false; restVersion = 6): DiscordClient
newDMChannel:
objects: newDMChannel(data: JsonNode): DMChannel
newEmoji:
objects: newEmoji(data: JsonNode): Emoji
newGuild:
objects: newGuild(data: JsonNode): Guild
newGuildBan:
objects: newGuildBan(data: JsonNode): GuildBan
newGuildChannel:
objects: newGuildChannel(data: JsonNode): GuildChannel
newGuildMembersChunk:
objects: newGuildMembersChunk(data: JsonNode): GuildMembersChunk
newGuildTemplate:
objects: newGuildTemplate(data: JsonNode): GuildTemplate
newInteraction:
objects: newInteraction(data: JsonNode): Interaction
newInvite:
objects: newInvite(data: JsonNode): Invite
newInviteCreate:
objects: newInviteCreate(data: JsonNode): InviteCreate
newInviteMetadata:
objects: newInviteMetadata(data: JsonNode): InviteMetadata
newMember:
objects: newMember(data: JsonNode): Member
newMessage:
objects: newMessage(data: JsonNode): Message
newOAuth2Application:
objects: newOAuth2Application(data: JsonNode): OAuth2Application
newOverwrite:
objects: newOverwrite(data: JsonNode): Overwrite
newPresence:
objects: newPresence(data: JsonNode): Presence
newReaction:
objects: newReaction(data: JsonNode): Reaction
newReady:
objects: newReady(data: JsonNode): Ready
newRole:
objects: newRole(data: JsonNode): Role
newShard:
objects: newShard(id: int; client: DiscordClient): Shard
newTypingStart:
objects: newTypingStart(data: JsonNode): TypingStart
newUser:
objects: newUser(data: JsonNode): User
newVoiceState:
objects: newVoiceState(data: JsonNode): VoiceState
newWebhook:
objects: newWebhook(data: JsonNode): Webhook
OAuth2Application:
objects: OAuth2Application
Overwrite:
objects: Overwrite
PartialChannel:
objects: PartialChannel
PartialGuild:
objects: PartialGuild
pause:
voice: pause(v: VoiceClient): owned(Future[void])
permAddReactions:
PermissionFlags.permAddReactions
permAdministrator:
PermissionFlags.permAdministrator
permAll:
constants: permAll
permAllChannel:
constants: permAllChannel
permAllText:
constants: permAllText
permAllVoice:
constants: permAllVoice
permAttachFiles:
PermissionFlags.permAttachFiles
permBanMembers:
PermissionFlags.permBanMembers
permChangeNickname:
PermissionFlags.permChangeNickname
permCheck:
helpers: permCheck(perms, perm: int): bool
helpers: permCheck(perms: int; p: PermObj): bool
permCreateInstantInvite:
PermissionFlags.permCreateInstantInvite
permEmbedLinks:
PermissionFlags.permEmbedLinks
PermissionFlags:
constants: PermissionFlags
permKickMembers:
PermissionFlags.permKickMembers
permManageChannels:
PermissionFlags.permManageChannels
permManageEmojis:
PermissionFlags.permManageEmojis
permManageGuild:
PermissionFlags.permManageGuild
permManageMessages:
PermissionFlags.permManageMessages
permManageNicknames:
PermissionFlags.permManageNicknames
permManageRoles:
PermissionFlags.permManageRoles
permManageWebhooks:
PermissionFlags.permManageWebhooks
permMentionEveryone:
PermissionFlags.permMentionEveryone
PermObj:
objects: PermObj
permPrioritySpeaker:
PermissionFlags.permPrioritySpeaker
permReadMessageHistory:
PermissionFlags.permReadMessageHistory
perms:
helpers: perms(p: PermObj): int
permSendMessages:
PermissionFlags.permSendMessages
permSendTTSMessage:
PermissionFlags.permSendTTSMessage
permUseExternalEmojis:
PermissionFlags.permUseExternalEmojis
permUseVAD:
PermissionFlags.permUseVAD
permViewAuditLogs:
PermissionFlags.permViewAuditLogs
permViewChannel:
PermissionFlags.permViewChannel
permViewGuildInsights:
PermissionFlags.permViewGuildInsights
permVoiceConnect:
PermissionFlags.permVoiceConnect
permVoiceDeafenMembers:
PermissionFlags.permVoiceDeafenMembers
permVoiceMoveMembers:
PermissionFlags.permVoiceMoveMembers
permVoiceMuteMembers:
PermissionFlags.permVoiceMuteMembers
permVoiceSpeak:
PermissionFlags.permVoiceSpeak
permVoiceStream:
PermissionFlags.permVoiceStream
playFFmpeg:
voice: playFFmpeg(v: VoiceClient; input: string): owned(Future[void])
PremiumTier:
constants: PremiumTier
Presence:
objects: Presence
ptNone:
PremiumTier.ptNone
ptTier1:
PremiumTier.ptTier1
ptTier2:
PremiumTier.ptTier2
ptTier3:
PremiumTier.ptTier3
Ratelimit:
objects: Ratelimit
Reaction:
objects: Reaction
Ready:
objects: Ready
registerApplicationCommand:
restapi: registerApplicationCommand(api: RestApi; application_id: string; guild_id = ""; name, description: string; options: seq[ApplicationCommandOption] = @[]): Future[ ApplicationCommand]
user: registerApplicationCommand(api: RestApi; application_id: string; guild_id = ""; name, description: string; options: seq[ApplicationCommandOption] = @[]): Future[ ApplicationCommand]
removeGuildBan:
restapi: removeGuildBan(api: RestApi; guild_id, user_id: string; reason = ""): owned( Future[void])
removeGuildMember:
restapi: removeGuildMember(api: RestApi; guild_id, user_id: string; reason = ""): owned( Future[void])
removeGuildMemberRole:
restapi: removeGuildMemberRole(api: RestApi; guild_id, user_id, role_id: string; reason = ""): owned(Future[void])
user: removeGuildMemberRole(api: RestApi; guild_id, user_id, role_id: string; reason = ""): owned(Future[void])
request:
requester: request(api: RestApi; meth, endpoint: string; pl, audit_reason = ""; mp: MultipartData = nil; auth = true): Future[JsonNode]
requestGuildMembers:
gateway: requestGuildMembers(s: Shard; guild_id: string or seq[string]; limit = none int; query = none string; nonce = ""; presences = false; user_ids: seq[string] = @[]): owned(Future[void])
RestApi:
objects: RestApi
restBase:
constants: restBase
RestError:
objects: RestError
resume:
gateway: resume(s: Shard): owned(Future[void])
voice: resume(v: VoiceClient): owned(Future[void])
Role:
objects: Role
sendMessage:
restapi: sendMessage(api: RestApi; channel_id: string; content = ""; tts = false; embed = none Embed; allowed_mentions = none AllowedMentions; nonce: Option[string] or Option[int] = none(int); files = none seq[DiscordFile]; message_reference = none MessageReference): Future[Message]
setGuildNick:
restapi: setGuildNick(api: RestApi; guild_id: string; nick, reason = ""): owned( Future[void])
user: setGuildNick(api: RestApi; guild_id: string; nick, reason = ""): owned( Future[void])
Shard:
objects: Shard
startSession:
gateway: startSession(discord: DiscordClient; autoreconnect = true; gateway_intents: set[GatewayIntent] = {}; large_message_threshold, large_threshold = 50; max_message_size = 5000000; gateway_version = 6; max_shards = none int; cache_users, cache_guilds, guild_subscriptions = true; cache_guild_channels, cache_dm_channels = true): owned(Future[void])
voice: startSession(v: VoiceClient): owned(Future[void])
Sticker:
objects: Sticker
stripChannelMentions:
helpers: stripChannelMentions(m: Message): string
stripMentions:
helpers: stripMentions(m: Message): string
stripRoleMentions:
helpers: stripRoleMentions(m: Message): string
stripUserMentions:
helpers: stripUserMentions(m: Message): string
syncGuildIntegration:
restapi: syncGuildIntegration(api: RestApi; guild_id, integ_id: string): owned( Future[void])
syncGuildTemplate:
restapi: syncGuildTemplate(api: RestApi; guild_id, code: string): Future[GuildTemplate]
Team:
objects: Team
TeamMember:
objects: TeamMember
TeamMembershipState:
constants: TeamMembershipState
timestamp:
helpers: timestamp(id: string): Time
tmsAccepted:
TeamMembershipState.tmsAccepted
tmsInvited:
TeamMembershipState.tmsInvited
triggerTypingIndicator:
restapi: triggerTypingIndicator(api: RestApi; channel_id: string): owned(Future[void])
TypingStart:
objects: TypingStart
ufBugHunterLevel1:
UserFlags.ufBugHunterLevel1
ufBugHunterLevel2:
UserFlags.ufBugHunterLevel2
ufDiscordEmployee:
UserFlags.ufDiscordEmployee
ufEarlySupporter:
UserFlags.ufEarlySupporter
ufEarlyVerifiedBotDeveloper:
UserFlags.ufEarlyVerifiedBotDeveloper
ufHouseBalance:
UserFlags.ufHouseBalance
ufHouseBravery:
UserFlags.ufHouseBravery
ufHouseBrilliance:
UserFlags.ufHouseBrilliance
ufHypesquadEvents:
UserFlags.ufHypesquadEvents
ufNone:
UserFlags.ufNone
ufPartneredServerOwner:
UserFlags.ufPartneredServerOwner
ufSystem:
UserFlags.ufSystem
ufTeamUser:
UserFlags.ufTeamUser
ufVerifiedBot:
UserFlags.ufVerifiedBot
UnavailableGuild:
objects: UnavailableGuild
updateMessage:
objects: updateMessage(m: Message; data: JsonNode): Message
updateStatus:
gateway: updateStatus(s: Shard; activities: seq[ActivityStatus] = @[]; status = "online"; afk = false): owned(Future[void])
gateway: updateStatus(s: Shard; activity = none ActivityStatus; status = "online"; afk = false): owned(Future[void])
User:
objects: User
UserFlags:
constants: UserFlags
VerificationLevel:
constants: VerificationLevel
vlHigh:
VerificationLevel.vlHigh
vlLow:
VerificationLevel.vlLow
vlMedium:
VerificationLevel.vlMedium
vlNone:
VerificationLevel.vlNone
vlVeryHigh:
VerificationLevel.vlVeryHigh
VoiceClient:
objects: VoiceClient
VoiceEvents:
objects: VoiceEvents
VoiceRegion:
objects: VoiceRegion
VoiceSpeakingFlags:
constants: VoiceSpeakingFlags
VoiceState:
objects: VoiceState
voiceStateUpdate:
gateway: voiceStateUpdate(s: Shard; guild_id: string; channel_id = none string; self_mute, self_deaf = false): owned(Future[void])
vsfMicrophone:
VoiceSpeakingFlags.vsfMicrophone
vsfPriority:
VoiceSpeakingFlags.vsfPriority
vsfSoundshare:
VoiceSpeakingFlags.vsfSoundshare
Webhook:
objects: Webhook
WebhookType:
constants: WebhookType
whFollower:
WebhookType.whFollower
whIncoming:
WebhookType.whIncoming