import * as discordApiTypes from "https://deno.land/x/discord_api_types@0.37.78/gateway/v9.ts"; EnumsEGatewayCloseCodeshttps://discord.com/developers/docs/topics/opcodes-and-status-codes#gateway-gateway-close-event-codes EGatewayDispatchEventshttps://discord.com/developers/docs/topics/gateway-events#receive-events EGatewayIntentBitshttps://discord.com/developers/docs/topics/gateway#list-of-intents EGatewayOpcodeshttps://discord.com/developers/docs/topics/opcodes-and-status-codes#gateway-gateway-opcodes VariablesvGatewayVersionInterfacesIGatewayApplicationCommandPermissionsUpdateDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#application-command-permissions-update IGatewayAutoModerationActionExecutionDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#auto-moderation-action-execution IGatewayChannelPinsUpdateDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#channel-pins-update IGatewayGuildAuditLogEntryCreateDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#guild-audit-log-entry-create IGatewayGuildBanModifyDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#guild-ban-add https://discord.com/developers/docs/topics/gateway-events#guild-ban-remove IGatewayGuildCreateDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#guild-create https://discord.com/developers/docs/topics/gateway-events#guild-create-guild-create-extra-fields IGatewayGuildEmojisUpdateDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#guild-emojis-update IGatewayGuildIntegrationsUpdateDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#guild-integrations-update IGatewayGuildMemberAddDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#guild-member-add IGatewayGuildMemberRemoveDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#guild-member-remove IGatewayGuildMembersChunkDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#guild-members-chunk IGatewayGuildRoleDeleteDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#guild-role-delete IGatewayGuildRoleModifyDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#guild-role-create https://discord.com/developers/docs/topics/gateway-events#guild-role-update IGatewayGuildScheduledEventUserAddDispatchDataIGatewayGuildScheduledEventUserRemoveDispatchDataIGatewayGuildStickersUpdateDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#guild-stickers-update IGatewayHeartbeathttps://discord.com/developers/docs/topics/gateway#sending-heartbeats IGatewayHeartbeatAckhttps://discord.com/developers/docs/topics/gateway-events#heartbeat IGatewayHeartbeatRequesthttps://discord.com/developers/docs/topics/gateway#sending-heartbeats IGatewayHellohttps://discord.com/developers/docs/topics/gateway-events#hello IGatewayHelloDatahttps://discord.com/developers/docs/topics/gateway-events#hello IGatewayIdentifyhttps://discord.com/developers/docs/topics/gateway-events#identify IGatewayIdentifyDatahttps://discord.com/developers/docs/topics/gateway-events#identify IGatewayIdentifyPropertieshttps://discord.com/developers/docs/topics/gateway-events#identify-identify-connection-properties IGatewayIntegrationDeleteDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#integration-delete IGatewayInvalidSessionhttps://discord.com/developers/docs/topics/gateway-events#invalid-session IGatewayInviteCreateDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#invite-create IGatewayInviteDeleteDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#invite-delete IGatewayMessageDeleteBulkDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#message-delete-bulk IGatewayMessageDeleteDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#message-delete IGatewayMessageEventExtraFieldsIGatewayMessageReactionRemoveEmojiDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#message-reaction-remove-emoji IGatewayPresenceUpdateDatahttps://discord.com/developers/docs/topics/gateway-events#update-presence-gateway-presence-update-structure IGatewayReadyDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#ready IGatewayReconnecthttps://discord.com/developers/docs/topics/gateway-events#reconnect IGatewayRequestGuildMembershttps://discord.com/developers/docs/topics/gateway-events#request-guild-members IGatewayRequestGuildMembersDataBaseIGatewayRequestGuildMembersDataWithQueryIGatewayRequestGuildMembersDataWithUserIdsIGatewayResumehttps://discord.com/developers/docs/topics/gateway-events#resume IGatewayResumeDatahttps://discord.com/developers/docs/topics/gateway-events#resume IGatewayThreadCreateDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#thread-create IGatewayThreadDeleteDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#thread-delete IGatewayTypingStartDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#typing-start IGatewayUpdatePresencehttps://discord.com/developers/docs/topics/gateway-events#update-presence IGatewayURLQueryhttps://discord.com/developers/docs/topics/gateway#connecting-gateway-url-query-string-params IGatewayVoiceServerUpdateDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#voice-server-update IGatewayVoiceStateUpdatehttps://discord.com/developers/docs/topics/gateway-events#update-voice-state IGatewayVoiceStateUpdateDatahttps://discord.com/developers/docs/topics/gateway-events#update-voice-state IGatewayWebhooksUpdateDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#webhooks-update Type AliasesTGatewayActivityUpdateDatahttps://discord.com/developers/docs/topics/gateway-events#activity-object-activity-structure TGatewayApplicationCommandPermissionsUpdateDispatchhttps://discord.com/developers/docs/topics/gateway-events#application-command-permissions-update TGatewayAutoModerationActionExecutionDispatchhttps://discord.com/developers/docs/topics/gateway-events#auto-moderation-action-execution TGatewayAutoModerationRuleCreateDispatchhttps://discord.com/developers/docs/topics/gateway-events#auto-moderation-rule-create TGatewayAutoModerationRuleCreateDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#auto-moderation-rule-create TGatewayAutoModerationRuleDeleteDispatchhttps://discord.com/developers/docs/topics/gateway-events#auto-moderation-rule-delete TGatewayAutoModerationRuleDeleteDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#auto-moderation-rule-delete TGatewayAutoModerationRuleModifyDispatchhttps://discord.com/developers/docs/topics/gateway-events#auto-moderation-rule-create https://discord.com/developers/docs/topics/gateway-events#auto-moderation-rule-update https://discord.com/developers/docs/topics/gateway-events#auto-moderation-rule-delete TGatewayAutoModerationRuleModifyDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#auto-moderation-rule-create https://discord.com/developers/docs/topics/gateway-events#auto-moderation-rule-update https://discord.com/developers/docs/topics/gateway-events#auto-moderation-rule-delete TGatewayAutoModerationRuleUpdateDispatchhttps://discord.com/developers/docs/topics/gateway-events#auto-moderation-rule-update TGatewayAutoModerationRuleUpdateDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#auto-moderation-rule-update TGatewayChannelCreateDispatchhttps://discord.com/developers/docs/topics/gateway-events#channel-create TGatewayChannelCreateDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#channel-create TGatewayChannelDeleteDispatchhttps://discord.com/developers/docs/topics/gateway-events#channel-delete TGatewayChannelDeleteDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#channel-delete TGatewayChannelModifyDispatchhttps://discord.com/developers/docs/topics/gateway-events#channel-create https://discord.com/developers/docs/topics/gateway-events#channel-update https://discord.com/developers/docs/topics/gateway-events#channel-delete TGatewayChannelModifyDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#channel-create https://discord.com/developers/docs/topics/gateway-events#channel-update https://discord.com/developers/docs/topics/gateway-events#channel-delete TGatewayChannelPinsUpdateDispatchhttps://discord.com/developers/docs/topics/gateway-events#channel-pins-update TGatewayChannelUpdateDispatchhttps://discord.com/developers/docs/topics/gateway-events#channel-update TGatewayChannelUpdateDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#channel-update TGatewayDispatchPayloadTGatewayEntitlementCreateDispatchhttps://discord.com/developers/docs/topics/gateway-events#entitlement-create TGatewayEntitlementCreateDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#entitlement-create TGatewayEntitlementDeleteDispatchhttps://discord.com/developers/docs/topics/gateway-events#entitlement-delete TGatewayEntitlementDeleteDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#entitlement-delete TGatewayEntitlementModifyDispatchhttps://discord.com/developers/docs/topics/gateway-events#entitlement-create https://discord.com/developers/docs/topics/gateway-events#entitlement-update https://discord.com/developers/docs/topics/gateway-events#entitlement-delete TGatewayEntitlementModifyDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#entitlement-create https://discord.com/developers/docs/topics/gateway-events#entitlement-update https://discord.com/developers/docs/topics/gateway-events#entitlement-delete TGatewayEntitlementUpdateDispatchhttps://discord.com/developers/docs/topics/gateway-events#entitlement-update TGatewayEntitlementUpdateDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#entitlement-update TGatewayGuildAuditLogEntryCreateDispatchhttps://discord.com/developers/docs/topics/gateway-events#guild-audit-log-entry-create TGatewayGuildBanAddDispatchhttps://discord.com/developers/docs/topics/gateway-events#guild-ban-add TGatewayGuildBanAddDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#guild-ban-add TGatewayGuildBanModifyDispatchhttps://discord.com/developers/docs/topics/gateway-events#guild-ban-add https://discord.com/developers/docs/topics/gateway-events#guild-ban-remove TGatewayGuildBanRemoveDispatchhttps://discord.com/developers/docs/topics/gateway-events#guild-ban-remove TGatewayGuildBanRemoveDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#guild-ban-remove TGatewayGuildCreateDispatchhttps://discord.com/developers/docs/topics/gateway-events#guild-create TGatewayGuildDeleteDispatchhttps://discord.com/developers/docs/topics/gateway-events#guild-delete TGatewayGuildDeleteDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#guild-delete TGatewayGuildEmojisUpdateDispatchhttps://discord.com/developers/docs/topics/gateway-events#guild-emojis-update TGatewayGuildIntegrationsUpdateDispatchhttps://discord.com/developers/docs/topics/gateway-events#guild-integrations-update TGatewayGuildMemberAddDispatchhttps://discord.com/developers/docs/topics/gateway-events#guild-member-add TGatewayGuildMemberRemoveDispatchhttps://discord.com/developers/docs/topics/gateway-events#guild-member-remove TGatewayGuildMembersChunkDispatchhttps://discord.com/developers/docs/topics/gateway-events#guild-members-chunk TGatewayGuildMembersChunkPresencehttps://discord.com/developers/docs/topics/gateway-events#update-presence TGatewayGuildMemberUpdateDispatchhttps://discord.com/developers/docs/topics/gateway-events#guild-member-update TGatewayGuildMemberUpdateDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#guild-member-update TGatewayGuildModifyDispatchhttps://discord.com/developers/docs/topics/gateway-events#guild-update TGatewayGuildModifyDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#guild-update TGatewayGuildRoleCreateDispatchhttps://discord.com/developers/docs/topics/gateway-events#guild-role-create TGatewayGuildRoleCreateDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#guild-role-create TGatewayGuildRoleDeleteDispatchhttps://discord.com/developers/docs/topics/gateway-events#guild-role-delete TGatewayGuildRoleModifyDispatchhttps://discord.com/developers/docs/topics/gateway-events#guild-role-create https://discord.com/developers/docs/topics/gateway-events#guild-role-update TGatewayGuildRoleUpdateDispatchhttps://discord.com/developers/docs/topics/gateway-events#guild-role-update TGatewayGuildRoleUpdateDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#guild-role-update TGatewayGuildScheduledEventCreateDispatchTGatewayGuildScheduledEventCreateDispatchDataTGatewayGuildScheduledEventDeleteDispatchTGatewayGuildScheduledEventDeleteDispatchDataTGatewayGuildScheduledEventUpdateDispatchTGatewayGuildScheduledEventUpdateDispatchDataTGatewayGuildScheduledEventUserAddDispatchTGatewayGuildScheduledEventUserRemoveDispatchTGatewayGuildStickersUpdateDispatchhttps://discord.com/developers/docs/topics/gateway-events#guild-stickers-update TGatewayGuildUpdateDispatchhttps://discord.com/developers/docs/topics/gateway-events#guild-update TGatewayGuildUpdateDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#guild-update TGatewayHeartbeatDatahttps://discord.com/developers/docs/topics/gateway#sending-heartbeats TGatewayIntegrationCreateDispatchhttps://discord.com/developers/docs/topics/gateway-events#integration-create TGatewayIntegrationCreateDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#integration-create TGatewayIntegrationDeleteDispatchhttps://discord.com/developers/docs/topics/gateway-events#integration-update TGatewayIntegrationUpdateDispatchhttps://discord.com/developers/docs/topics/gateway-events#integration-update TGatewayIntegrationUpdateDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#integration-update TGatewayInteractionCreateDispatchhttps://discord.com/developers/docs/topics/gateway-events#interaction-create TGatewayInteractionCreateDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#interaction-create TGatewayInvalidSessionDatahttps://discord.com/developers/docs/topics/gateway-events#invalid-session TGatewayInviteCreateDispatchhttps://discord.com/developers/docs/topics/gateway-events#invite-create TGatewayInviteDeleteDispatchhttps://discord.com/developers/docs/topics/gateway-events#invite-delete TGatewayMessageCreateDispatchhttps://discord.com/developers/docs/topics/gateway-events#message-create TGatewayMessageCreateDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#message-create TGatewayMessageDeleteBulkDispatchhttps://discord.com/developers/docs/topics/gateway-events#message-delete-bulk TGatewayMessageDeleteDispatchhttps://discord.com/developers/docs/topics/gateway-events#message-delete TGatewayMessageReactionAddDispatchhttps://discord.com/developers/docs/topics/gateway-events#message-reaction-add TGatewayMessageReactionAddDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#message-reaction-add TGatewayMessageReactionRemoveAllDispatchhttps://discord.com/developers/docs/topics/gateway-events#message-reaction-remove-all TGatewayMessageReactionRemoveAllDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#message-reaction-remove-all TGatewayMessageReactionRemoveDispatchhttps://discord.com/developers/docs/topics/gateway-events#message-reaction-remove TGatewayMessageReactionRemoveDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#message-reaction-remove TGatewayMessageReactionRemoveEmojiDispatchhttps://discord.com/developers/docs/topics/gateway-events#message-reaction-remove-emoji TGatewayMessageUpdateDispatchhttps://discord.com/developers/docs/topics/gateway-events#message-update TGatewayMessageUpdateDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#message-update TGatewayPresenceUpdateDispatchhttps://discord.com/developers/docs/topics/gateway-events#presence-update TGatewayPresenceUpdateDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#presence-update TGatewayReadyDispatchhttps://discord.com/developers/docs/topics/gateway-events#ready TGatewayReceivePayloadTGatewayRequestGuildMembersDatahttps://discord.com/developers/docs/topics/gateway-events#request-guild-members TGatewayResumedDispatchhttps://discord.com/developers/docs/topics/gateway-events#resumed TGatewaySendPayloadTGatewayStageInstanceCreateDispatchhttps://discord.com/developers/docs/topics/gateway-events#stage-instance-create TGatewayStageInstanceCreateDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#stage-instance-create TGatewayStageInstanceDeleteDispatchhttps://discord.com/developers/docs/topics/gateway-events#stage-instance-delete TGatewayStageInstanceDeleteDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#stage-instance-delete TGatewayStageInstanceUpdateDispatchhttps://discord.com/developers/docs/topics/gateway-events#stage-instance-update TGatewayStageInstanceUpdateDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#stage-instance-update TGatewayThreadCreateDispatchhttps://discord.com/developers/docs/topics/gateway-events#thread-create TGatewayThreadDeleteDispatchhttps://discord.com/developers/docs/topics/gateway-events#thread-delete TGatewayThreadListSyncDispatchhttps://discord.com/developers/docs/topics/gateway-events#thread-list-sync TGatewayThreadListSyncDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#thread-list-sync TGatewayThreadMembersUpdateDispatchhttps://discord.com/developers/docs/topics/gateway-events#thread-members-update TGatewayThreadMembersUpdateDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#thread-members-update TGatewayThreadMemberUpdateDispatchhttps://discord.com/developers/docs/topics/gateway-events#thread-member-update TGatewayThreadMemberUpdateDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#thread-member-update TGatewayThreadModifyDispatchdeprecatedTGatewayThreadUpdateDispatchhttps://discord.com/developers/docs/topics/gateway-events#thread-update TGatewayThreadUpdateDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#thread-update TGatewayTypingStartDispatchhttps://discord.com/developers/docs/topics/gateway-events#typing-start TGatewayUserUpdateDispatchhttps://discord.com/developers/docs/topics/gateway-events#user-update TGatewayUserUpdateDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#user-update TGatewayVoiceServerUpdateDispatchhttps://discord.com/developers/docs/topics/gateway-events#voice-server-update TGatewayVoiceStateUpdateDispatchhttps://discord.com/developers/docs/topics/gateway-events#voice-state-update TGatewayVoiceStateUpdateDispatchDatahttps://discord.com/developers/docs/topics/gateway-events#voice-state-update TGatewayWebhooksUpdateDispatchhttps://discord.com/developers/docs/topics/gateway-events#webhooks-update