seyfert 1.4.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -190
- package/README.md +22 -14
- package/lib/api/Router.js +5 -3
- package/lib/api/Routes/applications.d.ts +23 -1
- package/lib/api/Routes/channels.d.ts +1 -1
- package/lib/api/Routes/gateway.d.ts +1 -1
- package/lib/api/Routes/guilds.d.ts +8 -2
- package/lib/api/Routes/interactions.d.ts +1 -1
- package/lib/api/Routes/invites.d.ts +1 -1
- package/lib/api/Routes/stage-instances.d.ts +1 -1
- package/lib/api/Routes/stickers.d.ts +2 -2
- package/lib/api/Routes/users.d.ts +1 -1
- package/lib/api/Routes/voice.d.ts +1 -1
- package/lib/api/Routes/webhooks.d.ts +2 -2
- package/lib/api/api.d.ts +2 -2
- package/lib/api/api.js +2 -14
- package/lib/api/bucket.d.ts +0 -1
- package/lib/api/shared.d.ts +0 -1
- package/lib/api/utils/constants.d.ts +2 -5
- package/lib/api/utils/constants.js +3 -7
- package/lib/api/utils/utils.d.ts +1 -2
- package/lib/api/utils/utils.js +2 -3
- package/lib/builders/ActionRow.d.ts +1 -1
- package/lib/builders/ActionRow.js +3 -3
- package/lib/builders/Attachment.d.ts +2 -3
- package/lib/builders/Attachment.js +12 -13
- package/lib/builders/Base.d.ts +2 -2
- package/lib/builders/Base.js +1 -1
- package/lib/builders/Button.d.ts +7 -7
- package/lib/builders/Button.js +11 -9
- package/lib/builders/Embed.d.ts +1 -1
- package/lib/builders/Modal.d.ts +1 -1
- package/lib/builders/Modal.js +2 -2
- package/lib/builders/Poll.d.ts +2 -2
- package/lib/builders/Poll.js +5 -6
- package/lib/builders/SelectMenu.d.ts +1 -1
- package/lib/builders/SelectMenu.js +17 -18
- package/lib/builders/index.d.ts +1 -1
- package/lib/builders/index.js +10 -11
- package/lib/cache/adapters/default.d.ts +16 -9
- package/lib/cache/adapters/default.js +42 -31
- package/lib/cache/adapters/index.d.ts +0 -1
- package/lib/cache/adapters/index.js +0 -1
- package/lib/cache/adapters/limited.d.ts +17 -12
- package/lib/cache/adapters/limited.js +80 -36
- package/lib/cache/adapters/types.d.ts +6 -7
- package/lib/cache/adapters/workeradapter.d.ts +6 -6
- package/lib/cache/adapters/workeradapter.js +13 -0
- package/lib/cache/index.d.ts +24 -11
- package/lib/cache/index.js +335 -19
- package/lib/cache/resources/bans.d.ts +15 -0
- package/lib/cache/resources/bans.js +44 -0
- package/lib/cache/resources/channels.d.ts +6 -4
- package/lib/cache/resources/channels.js +13 -7
- package/lib/cache/resources/default/base.d.ts +7 -7
- package/lib/cache/resources/default/base.js +2 -2
- package/lib/cache/resources/default/guild-based.d.ts +6 -6
- package/lib/cache/resources/default/guild-based.js +6 -6
- package/lib/cache/resources/default/guild-related.d.ts +7 -7
- package/lib/cache/resources/default/guild-related.js +10 -8
- package/lib/cache/resources/emojis.d.ts +15 -6
- package/lib/cache/resources/emojis.js +13 -4
- package/lib/cache/resources/guilds.d.ts +9 -6
- package/lib/cache/resources/guilds.js +27 -6
- package/lib/cache/resources/members.d.ts +9 -6
- package/lib/cache/resources/members.js +24 -8
- package/lib/cache/resources/messages.d.ts +11 -7
- package/lib/cache/resources/messages.js +25 -11
- package/lib/cache/resources/overwrites.d.ts +11 -2
- package/lib/cache/resources/overwrites.js +9 -0
- package/lib/cache/resources/presence.d.ts +3 -2
- package/lib/cache/resources/roles.d.ts +9 -6
- package/lib/cache/resources/roles.js +13 -4
- package/lib/cache/resources/stage-instances.d.ts +2 -2
- package/lib/cache/resources/stickers.d.ts +9 -6
- package/lib/cache/resources/stickers.js +13 -4
- package/lib/cache/resources/threads.d.ts +9 -6
- package/lib/cache/resources/threads.js +13 -4
- package/lib/cache/resources/users.d.ts +9 -6
- package/lib/cache/resources/users.js +13 -4
- package/lib/cache/resources/voice-states.d.ts +11 -8
- package/lib/cache/resources/voice-states.js +15 -4
- package/lib/client/base.d.ts +32 -20
- package/lib/client/base.js +51 -30
- package/lib/client/client.d.ts +12 -9
- package/lib/client/client.js +43 -49
- package/lib/client/collectors.d.ts +36 -0
- package/lib/client/collectors.js +110 -0
- package/lib/client/httpclient.d.ts +8 -13
- package/lib/client/httpclient.js +27 -218
- package/lib/client/index.d.ts +1 -0
- package/lib/client/index.js +1 -0
- package/lib/client/transformers.d.ts +68 -0
- package/lib/client/transformers.js +99 -0
- package/lib/client/types.d.ts +5 -0
- package/lib/client/types.js +2 -0
- package/lib/client/workerclient.d.ts +18 -15
- package/lib/client/workerclient.js +148 -110
- package/lib/collection.d.ts +2 -2
- package/lib/collection.js +2 -2
- package/lib/commands/applications/chat.d.ts +40 -38
- package/lib/commands/applications/chat.js +22 -12
- package/lib/commands/applications/chatcontext.d.ts +17 -17
- package/lib/commands/applications/chatcontext.js +5 -5
- package/lib/commands/applications/menu.d.ts +9 -9
- package/lib/commands/applications/menu.js +5 -7
- package/lib/commands/applications/menucontext.d.ts +14 -13
- package/lib/commands/applications/menucontext.js +9 -9
- package/lib/commands/applications/options.d.ts +1 -1
- package/lib/commands/applications/options.js +20 -21
- package/lib/commands/applications/shared.d.ts +14 -0
- package/lib/commands/decorators.d.ts +47 -35
- package/lib/commands/decorators.js +19 -27
- package/lib/commands/handle.d.ts +64 -0
- package/lib/commands/handle.js +685 -0
- package/lib/commands/handler.d.ts +27 -18
- package/lib/commands/handler.js +296 -160
- package/lib/commands/optionresolver.d.ts +13 -13
- package/lib/commands/optionresolver.js +23 -28
- package/lib/common/bot/watcher.d.ts +4 -33
- package/lib/common/bot/watcher.js +0 -109
- package/lib/common/index.d.ts +2 -0
- package/lib/common/index.js +4 -1
- package/lib/common/it/colors.js +48 -49
- package/lib/common/it/formatter.d.ts +187 -0
- package/lib/common/it/formatter.js +226 -0
- package/lib/common/it/logger.d.ts +0 -1
- package/lib/common/it/logger.js +8 -8
- package/lib/common/it/utils.d.ts +15 -2
- package/lib/common/it/utils.js +80 -21
- package/lib/common/shorters/application.d.ts +56 -0
- package/lib/common/shorters/application.js +81 -0
- package/lib/common/shorters/bans.d.ts +42 -0
- package/lib/common/shorters/bans.js +78 -0
- package/lib/common/shorters/channels.d.ts +7 -6
- package/lib/common/shorters/channels.js +19 -15
- package/lib/common/shorters/emojis.d.ts +5 -6
- package/lib/common/shorters/emojis.js +8 -7
- package/lib/common/shorters/guilds.d.ts +18 -16
- package/lib/common/shorters/guilds.js +31 -26
- package/lib/common/shorters/interaction.d.ts +6 -6
- package/lib/common/shorters/interaction.js +12 -9
- package/lib/common/shorters/members.d.ts +29 -12
- package/lib/common/shorters/members.js +55 -16
- package/lib/common/shorters/messages.d.ts +7 -8
- package/lib/common/shorters/messages.js +10 -9
- package/lib/common/shorters/reactions.d.ts +3 -3
- package/lib/common/shorters/reactions.js +11 -11
- package/lib/common/shorters/roles.d.ts +9 -7
- package/lib/common/shorters/roles.js +26 -7
- package/lib/common/shorters/templates.d.ts +7 -8
- package/lib/common/shorters/templates.js +7 -7
- package/lib/common/shorters/threads.d.ts +6 -7
- package/lib/common/shorters/threads.js +6 -9
- package/lib/common/shorters/users.d.ts +4 -4
- package/lib/common/shorters/users.js +8 -4
- package/lib/common/shorters/webhook.d.ts +10 -10
- package/lib/common/shorters/webhook.js +12 -11
- package/lib/common/types/resolvables.d.ts +2 -2
- package/lib/common/types/util.d.ts +3 -1
- package/lib/common/types/write.d.ts +1 -1
- package/lib/components/ActionRow.d.ts +1 -1
- package/lib/components/BaseComponent.d.ts +1 -1
- package/lib/components/BaseComponent.js +1 -1
- package/lib/components/BaseSelectMenuComponent.d.ts +1 -1
- package/lib/components/ButtonComponent.d.ts +17 -7
- package/lib/components/ButtonComponent.js +19 -2
- package/lib/components/ChannelSelectMenuComponent.d.ts +3 -3
- package/lib/components/MentionableSelectMenuComponent.d.ts +2 -2
- package/lib/components/RoleSelectMenuComponent.d.ts +2 -2
- package/lib/components/StringSelectMenuComponent.d.ts +2 -2
- package/lib/components/TextInputComponent.d.ts +2 -2
- package/lib/components/UserSelectMenuComponent.d.ts +2 -2
- package/lib/components/componentcommand.d.ts +3 -2
- package/lib/components/componentcommand.js +4 -3
- package/lib/components/componentcontext.d.ts +11 -10
- package/lib/components/componentcontext.js +8 -8
- package/lib/components/handler.d.ts +16 -15
- package/lib/components/handler.js +101 -108
- package/lib/components/index.d.ts +3 -3
- package/lib/components/index.js +12 -10
- package/lib/components/modalcommand.d.ts +2 -1
- package/lib/components/modalcommand.js +1 -0
- package/lib/components/modalcontext.d.ts +13 -12
- package/lib/components/modalcontext.js +2 -2
- package/lib/deps/mixer.d.ts +8 -0
- package/lib/deps/mixer.js +66 -0
- package/lib/events/event.d.ts +4 -3
- package/lib/events/handler.d.ts +40 -15
- package/lib/events/handler.js +99 -21
- package/lib/events/hooks/application_command.d.ts +2 -2
- package/lib/events/hooks/auto_moderation.d.ts +6 -7
- package/lib/events/hooks/auto_moderation.js +4 -4
- package/lib/events/hooks/channel.d.ts +2 -2
- package/lib/events/hooks/channel.js +4 -7
- package/lib/events/hooks/custom.d.ts +3 -3
- package/lib/events/hooks/dispatch.d.ts +3 -4
- package/lib/events/hooks/dispatch.js +2 -2
- package/lib/events/hooks/entitlement.d.ts +5 -37
- package/lib/events/hooks/entitlement.js +7 -7
- package/lib/events/hooks/guild.d.ts +126 -181
- package/lib/events/hooks/guild.js +13 -15
- package/lib/events/hooks/integration.d.ts +71 -15
- package/lib/events/hooks/integration.js +3 -3
- package/lib/events/hooks/interactions.d.ts +2 -2
- package/lib/events/hooks/invite.d.ts +18 -14
- package/lib/events/hooks/message.d.ts +72 -52
- package/lib/events/hooks/message.js +4 -8
- package/lib/events/hooks/presence.d.ts +21 -16
- package/lib/events/hooks/stage.d.ts +4 -4
- package/lib/events/hooks/thread.d.ts +140 -60
- package/lib/events/hooks/thread.js +4 -4
- package/lib/events/hooks/typing.d.ts +28 -5
- package/lib/events/hooks/typing.js +2 -2
- package/lib/events/hooks/user.d.ts +3 -3
- package/lib/events/hooks/user.js +2 -2
- package/lib/events/hooks/voice.d.ts +28 -3
- package/lib/events/hooks/voice.js +8 -4
- package/lib/events/hooks/webhook.d.ts +1 -1
- package/lib/index.d.ts +6 -15
- package/lib/index.js +8 -12
- package/lib/langs/handler.d.ts +14 -10
- package/lib/langs/handler.js +40 -9
- package/lib/structures/AutoModerationRule.d.ts +4 -4
- package/lib/structures/AutoModerationRule.js +1 -2
- package/lib/structures/ClientUser.d.ts +1 -1
- package/lib/structures/Entitlement.d.ts +10 -0
- package/lib/structures/Entitlement.js +16 -0
- package/lib/structures/Guild.d.ts +37 -30
- package/lib/structures/Guild.js +7 -2
- package/lib/structures/GuildBan.d.ts +25 -0
- package/lib/structures/GuildBan.js +37 -0
- package/lib/structures/GuildEmoji.d.ts +4 -4
- package/lib/structures/GuildEmoji.js +3 -2
- package/lib/structures/GuildMember.d.ts +27 -19
- package/lib/structures/GuildMember.js +21 -11
- package/lib/structures/GuildPreview.d.ts +1 -1
- package/lib/structures/GuildRole.d.ts +5 -3
- package/lib/structures/GuildRole.js +8 -1
- package/lib/structures/GuildTemplate.d.ts +2 -2
- package/lib/structures/GuildTemplate.js +1 -1
- package/lib/structures/Interaction.d.ts +56 -38
- package/lib/structures/Interaction.js +134 -86
- package/lib/structures/Message.d.ts +80 -20
- package/lib/structures/Message.js +67 -26
- package/lib/structures/Poll.d.ts +4 -3
- package/lib/structures/Poll.js +6 -2
- package/lib/structures/Sticker.d.ts +10 -10
- package/lib/structures/Sticker.js +7 -7
- package/lib/structures/User.d.ts +6 -4
- package/lib/structures/User.js +6 -2
- package/lib/structures/VoiceState.d.ts +15 -11
- package/lib/structures/VoiceState.js +35 -17
- package/lib/structures/Webhook.d.ts +6 -7
- package/lib/structures/Webhook.js +6 -7
- package/lib/structures/channels.d.ts +14 -10
- package/lib/structures/channels.js +97 -62
- package/lib/structures/extra/BaseGuild.d.ts +1 -1
- package/lib/structures/extra/BaseGuild.js +3 -3
- package/lib/structures/extra/BitField.d.ts +1 -1
- package/lib/structures/extra/BitField.js +3 -2
- package/lib/structures/extra/DiscordBase.js +2 -2
- package/lib/structures/extra/Permissions.d.ts +3 -1
- package/lib/structures/extra/Permissions.js +8 -3
- package/lib/types/gateway.d.ts +1537 -0
- package/lib/types/gateway.js +4 -0
- package/lib/types/index.d.ts +9 -1
- package/lib/types/index.js +28 -1
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/attachment.d.ts +5 -0
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/attachment.js +2 -0
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/base.d.ts +22 -0
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/base.js +2 -0
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/boolean.d.ts +4 -0
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/boolean.js +2 -0
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/channel.d.ts +7 -0
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/channel.js +2 -0
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/integer.d.ts +17 -0
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/integer.js +2 -0
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/mentionable.d.ts +5 -0
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/mentionable.js +2 -0
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/number.d.ts +17 -0
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/number.js +2 -0
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/role.d.ts +5 -0
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/role.js +2 -0
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/shared.d.ts +25 -0
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/shared.js +20 -0
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/string.d.ts +17 -0
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/string.js +2 -0
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/subcommand.d.ts +11 -0
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/subcommand.js +2 -0
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/subcommandGroup.d.ts +11 -0
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/subcommandGroup.js +2 -0
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/user.d.ts +5 -0
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/user.js +2 -0
- package/lib/types/payloads/_interactions/_applicationCommands/chatInput.d.ts +60 -0
- package/lib/types/payloads/_interactions/_applicationCommands/chatInput.js +29 -0
- package/lib/types/payloads/_interactions/_applicationCommands/contextMenu.d.ts +65 -0
- package/lib/types/payloads/_interactions/_applicationCommands/contextMenu.js +2 -0
- package/lib/types/payloads/_interactions/_applicationCommands/internals.d.ts +8 -0
- package/lib/types/payloads/_interactions/_applicationCommands/internals.js +2 -0
- package/lib/types/payloads/_interactions/_applicationCommands/permissions.d.ts +54 -0
- package/lib/types/payloads/_interactions/_applicationCommands/permissions.js +20 -0
- package/lib/types/payloads/_interactions/applicationCommands.d.ts +153 -0
- package/lib/types/payloads/_interactions/applicationCommands.js +61 -0
- package/lib/types/payloads/_interactions/autocomplete.d.ts +10 -0
- package/lib/types/payloads/_interactions/autocomplete.js +2 -0
- package/lib/types/payloads/_interactions/base.d.ts +197 -0
- package/lib/types/payloads/_interactions/base.js +2 -0
- package/lib/types/payloads/_interactions/messageComponents.d.ts +41 -0
- package/lib/types/payloads/_interactions/messageComponents.js +2 -0
- package/lib/types/payloads/_interactions/modalSubmit.d.ts +35 -0
- package/lib/types/payloads/_interactions/modalSubmit.js +2 -0
- package/lib/types/payloads/_interactions/ping.d.ts +3 -0
- package/lib/types/payloads/_interactions/ping.js +2 -0
- package/lib/types/payloads/_interactions/responses.d.ts +112 -0
- package/lib/types/payloads/_interactions/responses.js +54 -0
- package/lib/types/payloads/application.d.ts +292 -0
- package/lib/types/payloads/application.js +117 -0
- package/lib/types/payloads/auditLog.d.ts +644 -0
- package/lib/types/payloads/auditLog.js +80 -0
- package/lib/types/payloads/autoModeration.d.ts +219 -0
- package/lib/types/payloads/autoModeration.js +87 -0
- package/lib/types/payloads/channel.d.ts +1708 -0
- package/lib/types/payloads/channel.js +372 -0
- package/lib/types/payloads/emoji.d.ts +48 -0
- package/lib/types/payloads/emoji.js +5 -0
- package/lib/types/payloads/gateway.d.ts +373 -0
- package/lib/types/payloads/gateway.js +82 -0
- package/lib/types/payloads/guild.d.ts +1060 -0
- package/lib/types/payloads/guild.js +324 -0
- package/lib/types/payloads/guildScheduledEvent.d.ts +138 -0
- package/lib/types/payloads/guildScheduledEvent.js +32 -0
- package/lib/types/payloads/index.d.ts +64 -0
- package/lib/types/payloads/index.js +37 -0
- package/lib/types/payloads/interactions.d.ts +24 -0
- package/lib/types/payloads/interactions.js +23 -0
- package/lib/types/payloads/invite.d.ts +121 -0
- package/lib/types/payloads/invite.js +23 -0
- package/lib/types/payloads/monetization.d.ts +150 -0
- package/lib/types/payloads/monetization.js +79 -0
- package/lib/types/payloads/oauth2.d.ts +131 -0
- package/lib/types/payloads/oauth2.js +135 -0
- package/lib/types/payloads/permissions.d.ts +97 -0
- package/lib/types/payloads/permissions.js +16 -0
- package/lib/types/payloads/poll.d.ts +104 -0
- package/lib/types/payloads/poll.js +16 -0
- package/lib/types/payloads/stageInstance.d.ts +77 -0
- package/lib/types/payloads/stageInstance.js +19 -0
- package/lib/types/payloads/sticker.d.ts +123 -0
- package/lib/types/payloads/sticker.js +30 -0
- package/lib/types/payloads/teams.d.ts +78 -0
- package/lib/types/payloads/teams.js +23 -0
- package/lib/types/payloads/template.d.ts +62 -0
- package/lib/types/payloads/template.js +5 -0
- package/lib/types/payloads/user.d.ts +337 -0
- package/lib/types/payloads/user.js +167 -0
- package/lib/types/payloads/voice.d.ts +89 -0
- package/lib/types/payloads/voice.js +5 -0
- package/lib/types/payloads/webhook.d.ts +76 -0
- package/lib/types/payloads/webhook.js +21 -0
- package/lib/types/rest/application.d.ts +57 -0
- package/lib/types/rest/application.js +2 -0
- package/lib/types/rest/auditLog.d.ts +30 -0
- package/lib/types/rest/auditLog.js +2 -0
- package/lib/types/rest/autoModeration.d.ts +66 -0
- package/lib/types/rest/autoModeration.js +2 -0
- package/lib/types/rest/channel.d.ts +712 -0
- package/lib/types/rest/channel.js +11 -0
- package/lib/types/rest/emoji.d.ts +54 -0
- package/lib/types/rest/emoji.js +2 -0
- package/lib/types/rest/gateway.d.ts +9 -0
- package/lib/types/rest/gateway.js +2 -0
- package/lib/types/rest/guild.d.ts +865 -0
- package/lib/types/rest/guild.js +2 -0
- package/lib/types/rest/guildScheduledEvent.d.ts +126 -0
- package/lib/types/rest/guildScheduledEvent.js +2 -0
- package/lib/types/rest/index.d.ts +296 -0
- package/lib/types/rest/index.js +292 -0
- package/lib/types/rest/interactions.d.ts +194 -0
- package/lib/types/rest/interactions.js +2 -0
- package/lib/types/rest/invite.d.ts +24 -0
- package/lib/types/rest/invite.js +2 -0
- package/lib/types/rest/monetization.d.ts +82 -0
- package/lib/types/rest/monetization.js +11 -0
- package/lib/types/rest/oauth2.d.ts +172 -0
- package/lib/types/rest/oauth2.js +2 -0
- package/lib/types/rest/poll.d.ts +44 -0
- package/lib/types/rest/poll.js +2 -0
- package/lib/types/rest/stageInstance.d.ts +58 -0
- package/lib/types/rest/stageInstance.js +2 -0
- package/lib/types/rest/sticker.d.ts +77 -0
- package/lib/types/rest/sticker.js +2 -0
- package/lib/types/rest/template.d.ts +62 -0
- package/lib/types/rest/template.js +2 -0
- package/lib/types/rest/user.d.ts +120 -0
- package/lib/types/rest/user.js +2 -0
- package/lib/types/rest/voice.d.ts +17 -0
- package/lib/types/rest/voice.js +2 -0
- package/lib/types/rest/webhook.d.ts +250 -0
- package/lib/types/rest/webhook.js +2 -0
- package/lib/types/utils/index.d.ts +797 -0
- package/lib/types/utils/index.js +799 -0
- package/lib/websocket/SharedTypes.d.ts +4 -3
- package/lib/websocket/SharedTypes.js +1 -1
- package/lib/websocket/constants/index.d.ts +0 -1
- package/lib/websocket/discord/basesocket.d.ts +7 -6
- package/lib/websocket/discord/basesocket.js +35 -6
- package/lib/websocket/discord/events/memberUpdate.d.ts +1 -6
- package/lib/websocket/discord/events/memberUpdate.js +2 -1
- package/lib/websocket/discord/events/presenceUpdate.d.ts +5 -18
- package/lib/websocket/discord/events/presenceUpdate.js +5 -6
- package/lib/websocket/discord/shard.d.ts +9 -8
- package/lib/websocket/discord/shard.js +65 -47
- package/lib/websocket/discord/sharder.d.ts +6 -5
- package/lib/websocket/discord/sharder.js +11 -10
- package/lib/websocket/discord/shared.d.ts +13 -5
- package/lib/websocket/discord/socket/custom.d.ts +52 -0
- package/lib/websocket/discord/socket/custom.js +283 -0
- package/lib/websocket/discord/worker.d.ts +5 -10
- package/lib/websocket/discord/workermanager.d.ts +8 -15
- package/lib/websocket/discord/workermanager.js +35 -39
- package/lib/websocket/structures/index.d.ts +0 -1
- package/lib/websocket/structures/index.js +1 -1
- package/lib/websocket/structures/timeout.d.ts +0 -1
- package/package.json +65 -74
- package/lib/cache/adapters/redis.d.ts +0 -37
- package/lib/cache/adapters/redis.js +0 -218
- package/lib/client/oninteractioncreate.d.ts +0 -4
- package/lib/client/oninteractioncreate.js +0 -198
- package/lib/client/onmessagecreate.d.ts +0 -3
- package/lib/client/onmessagecreate.js +0 -395
- package/lib/structures/extra/functions.d.ts +0 -12
- package/lib/structures/extra/functions.js +0 -70
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { GatewayGuildAuditLogEntryCreateDispatchData, GatewayGuildBanAddDispatchData, GatewayGuildBanRemoveDispatchData, GatewayGuildCreateDispatchData, GatewayGuildDeleteDispatchData, GatewayGuildEmojisUpdateDispatchData, GatewayGuildIntegrationsUpdateDispatchData, GatewayGuildMemberRemoveDispatchData, GatewayGuildMemberUpdateDispatchData, GatewayGuildMembersChunkDispatchData, GatewayGuildRoleCreateDispatchData, GatewayGuildRoleDeleteDispatchData, GatewayGuildRoleUpdateDispatchData, GatewayGuildScheduledEventCreateDispatchData, GatewayGuildScheduledEventDeleteDispatchData, GatewayGuildScheduledEventUpdateDispatchData, GatewayGuildScheduledEventUserAddDispatchData, GatewayGuildScheduledEventUserRemoveDispatchData, GatewayGuildStickersUpdateDispatchData, GatewayGuildUpdateDispatchData } from '
|
|
2
|
-
import { Guild, GuildEmoji, GuildMember, GuildRole, Sticker, UnavailableMember, User, type GatewayGuildMemberAddDispatchDataFixed } from '../../structures';
|
|
1
|
+
import type { GatewayGuildAuditLogEntryCreateDispatchData, GatewayGuildBanAddDispatchData, GatewayGuildBanRemoveDispatchData, GatewayGuildCreateDispatchData, GatewayGuildDeleteDispatchData, GatewayGuildEmojisUpdateDispatchData, GatewayGuildIntegrationsUpdateDispatchData, GatewayGuildMemberAddDispatchData, GatewayGuildMemberRemoveDispatchData, GatewayGuildMemberUpdateDispatchData, GatewayGuildMembersChunkDispatchData, GatewayGuildRoleCreateDispatchData, GatewayGuildRoleDeleteDispatchData, GatewayGuildRoleUpdateDispatchData, GatewayGuildScheduledEventCreateDispatchData, GatewayGuildScheduledEventDeleteDispatchData, GatewayGuildScheduledEventUpdateDispatchData, GatewayGuildScheduledEventUserAddDispatchData, GatewayGuildScheduledEventUserRemoveDispatchData, GatewayGuildStickersUpdateDispatchData, GatewayGuildUpdateDispatchData } from '../../types';
|
|
3
2
|
import type { UsingClient } from '../../commands';
|
|
3
|
+
import { type GuildMemberStructure, type GuildRoleStructure, type GuildStructure } from '../../client/transformers';
|
|
4
4
|
export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: GatewayGuildAuditLogEntryCreateDispatchData) => {
|
|
5
5
|
guildId: string;
|
|
6
6
|
targetId: string | null;
|
|
@@ -9,93 +9,25 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
|
|
|
9
9
|
newValue?: {
|
|
10
10
|
id: string;
|
|
11
11
|
name: string;
|
|
12
|
-
color: number;
|
|
13
|
-
hoist: boolean;
|
|
14
|
-
icon?: string | null | undefined;
|
|
15
|
-
unicodeEmoji?: string | null | undefined;
|
|
16
|
-
position: number;
|
|
17
|
-
permissions: string;
|
|
18
|
-
managed: boolean;
|
|
19
|
-
mentionable: boolean;
|
|
20
|
-
tags?: {
|
|
21
|
-
botId?: string | undefined;
|
|
22
|
-
premiumSubscriber?: null | undefined;
|
|
23
|
-
integrationId?: string | undefined;
|
|
24
|
-
subscriptionListingId?: string | undefined;
|
|
25
|
-
availableForPurchase?: null | undefined;
|
|
26
|
-
guildConnections?: null | undefined;
|
|
27
|
-
} | undefined;
|
|
28
|
-
flags: import("discord-api-types/v10").RoleFlags;
|
|
29
12
|
}[] | undefined;
|
|
30
13
|
oldValue?: {
|
|
31
14
|
id: string;
|
|
32
15
|
name: string;
|
|
33
|
-
color: number;
|
|
34
|
-
hoist: boolean;
|
|
35
|
-
icon?: string | null | undefined;
|
|
36
|
-
unicodeEmoji?: string | null | undefined;
|
|
37
|
-
position: number;
|
|
38
|
-
permissions: string;
|
|
39
|
-
managed: boolean;
|
|
40
|
-
mentionable: boolean;
|
|
41
|
-
tags?: {
|
|
42
|
-
botId?: string | undefined;
|
|
43
|
-
premiumSubscriber?: null | undefined;
|
|
44
|
-
integrationId?: string | undefined;
|
|
45
|
-
subscriptionListingId?: string | undefined;
|
|
46
|
-
availableForPurchase?: null | undefined;
|
|
47
|
-
guildConnections?: null | undefined;
|
|
48
|
-
} | undefined;
|
|
49
|
-
flags: import("discord-api-types/v10").RoleFlags;
|
|
50
16
|
}[] | undefined;
|
|
51
17
|
} | {
|
|
52
18
|
key: "$remove";
|
|
53
19
|
newValue?: {
|
|
54
20
|
id: string;
|
|
55
21
|
name: string;
|
|
56
|
-
color: number;
|
|
57
|
-
hoist: boolean;
|
|
58
|
-
icon?: string | null | undefined;
|
|
59
|
-
unicodeEmoji?: string | null | undefined;
|
|
60
|
-
position: number;
|
|
61
|
-
permissions: string;
|
|
62
|
-
managed: boolean;
|
|
63
|
-
mentionable: boolean;
|
|
64
|
-
tags?: {
|
|
65
|
-
botId?: string | undefined;
|
|
66
|
-
premiumSubscriber?: null | undefined;
|
|
67
|
-
integrationId?: string | undefined;
|
|
68
|
-
subscriptionListingId?: string | undefined;
|
|
69
|
-
availableForPurchase?: null | undefined;
|
|
70
|
-
guildConnections?: null | undefined;
|
|
71
|
-
} | undefined;
|
|
72
|
-
flags: import("discord-api-types/v10").RoleFlags;
|
|
73
22
|
}[] | undefined;
|
|
74
23
|
oldValue?: {
|
|
75
24
|
id: string;
|
|
76
25
|
name: string;
|
|
77
|
-
color: number;
|
|
78
|
-
hoist: boolean;
|
|
79
|
-
icon?: string | null | undefined;
|
|
80
|
-
unicodeEmoji?: string | null | undefined;
|
|
81
|
-
position: number;
|
|
82
|
-
permissions: string;
|
|
83
|
-
managed: boolean;
|
|
84
|
-
mentionable: boolean;
|
|
85
|
-
tags?: {
|
|
86
|
-
botId?: string | undefined;
|
|
87
|
-
premiumSubscriber?: null | undefined;
|
|
88
|
-
integrationId?: string | undefined;
|
|
89
|
-
subscriptionListingId?: string | undefined;
|
|
90
|
-
availableForPurchase?: null | undefined;
|
|
91
|
-
guildConnections?: null | undefined;
|
|
92
|
-
} | undefined;
|
|
93
|
-
flags: import("discord-api-types/v10").RoleFlags;
|
|
94
26
|
}[] | undefined;
|
|
95
27
|
} | {
|
|
96
28
|
key: "actions";
|
|
97
29
|
newValue?: {
|
|
98
|
-
type: import("
|
|
30
|
+
type: import("../../types").AutoModerationActionType;
|
|
99
31
|
metadata?: {
|
|
100
32
|
channelId?: string | undefined;
|
|
101
33
|
durationSeconds?: number | undefined;
|
|
@@ -103,7 +35,7 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
|
|
|
103
35
|
} | undefined;
|
|
104
36
|
}[] | undefined;
|
|
105
37
|
oldValue?: {
|
|
106
|
-
type: import("
|
|
38
|
+
type: import("../../types").AutoModerationActionType;
|
|
107
39
|
metadata?: {
|
|
108
40
|
channelId?: string | undefined;
|
|
109
41
|
durationSeconds?: number | undefined;
|
|
@@ -196,8 +128,8 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
|
|
|
196
128
|
oldValue?: number | undefined;
|
|
197
129
|
} | {
|
|
198
130
|
key: "default_message_notifications";
|
|
199
|
-
newValue?: import("
|
|
200
|
-
oldValue?: import("
|
|
131
|
+
newValue?: import("../../types").GuildDefaultMessageNotifications | undefined;
|
|
132
|
+
oldValue?: import("../../types").GuildDefaultMessageNotifications | undefined;
|
|
201
133
|
} | {
|
|
202
134
|
key: "default_reaction_emoji";
|
|
203
135
|
newValue?: {
|
|
@@ -234,12 +166,12 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
|
|
|
234
166
|
oldValue?: boolean | undefined;
|
|
235
167
|
} | {
|
|
236
168
|
key: "entity_type";
|
|
237
|
-
newValue?: import("
|
|
238
|
-
oldValue?: import("
|
|
169
|
+
newValue?: import("../../types").GuildScheduledEventEntityType | undefined;
|
|
170
|
+
oldValue?: import("../../types").GuildScheduledEventEntityType | undefined;
|
|
239
171
|
} | {
|
|
240
172
|
key: "event_type";
|
|
241
|
-
newValue?: import("
|
|
242
|
-
oldValue?: import("
|
|
173
|
+
newValue?: import("../../types").AutoModerationRuleEventType | undefined;
|
|
174
|
+
oldValue?: import("../../types").AutoModerationRuleEventType | undefined;
|
|
243
175
|
} | {
|
|
244
176
|
key: "exempt_channels";
|
|
245
177
|
newValue?: string[] | undefined;
|
|
@@ -250,24 +182,24 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
|
|
|
250
182
|
oldValue?: string[] | undefined;
|
|
251
183
|
} | {
|
|
252
184
|
key: "expire_behavior";
|
|
253
|
-
newValue?: import("
|
|
254
|
-
oldValue?: import("
|
|
185
|
+
newValue?: import("../../types").IntegrationExpireBehavior | undefined;
|
|
186
|
+
oldValue?: import("../../types").IntegrationExpireBehavior | undefined;
|
|
255
187
|
} | {
|
|
256
188
|
key: "expire_grace_period";
|
|
257
189
|
newValue?: number | undefined;
|
|
258
190
|
oldValue?: number | undefined;
|
|
259
191
|
} | {
|
|
260
192
|
key: "explicit_content_filter";
|
|
261
|
-
newValue?: import("
|
|
262
|
-
oldValue?: import("
|
|
193
|
+
newValue?: import("../../types").GuildExplicitContentFilter | undefined;
|
|
194
|
+
oldValue?: import("../../types").GuildExplicitContentFilter | undefined;
|
|
263
195
|
} | {
|
|
264
196
|
key: "flags";
|
|
265
197
|
newValue?: number | undefined;
|
|
266
198
|
oldValue?: number | undefined;
|
|
267
199
|
} | {
|
|
268
200
|
key: "format_type";
|
|
269
|
-
newValue?: import("
|
|
270
|
-
oldValue?: import("
|
|
201
|
+
newValue?: import("../../types").StickerFormatType | undefined;
|
|
202
|
+
oldValue?: import("../../types").StickerFormatType | undefined;
|
|
271
203
|
} | {
|
|
272
204
|
key: "guild_id";
|
|
273
205
|
newValue?: string | undefined;
|
|
@@ -314,8 +246,8 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
|
|
|
314
246
|
oldValue?: boolean | undefined;
|
|
315
247
|
} | {
|
|
316
248
|
key: "mfa_level";
|
|
317
|
-
newValue?: import("
|
|
318
|
-
oldValue?: import("
|
|
249
|
+
newValue?: import("../../types").GuildMFALevel | undefined;
|
|
250
|
+
oldValue?: import("../../types").GuildMFALevel | undefined;
|
|
319
251
|
} | {
|
|
320
252
|
key: "mute";
|
|
321
253
|
newValue?: boolean | undefined;
|
|
@@ -340,13 +272,13 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
|
|
|
340
272
|
key: "permission_overwrites";
|
|
341
273
|
newValue?: {
|
|
342
274
|
id: string;
|
|
343
|
-
type: import("
|
|
275
|
+
type: import("../../types").OverwriteType;
|
|
344
276
|
allow: string;
|
|
345
277
|
deny: string;
|
|
346
278
|
}[] | undefined;
|
|
347
279
|
oldValue?: {
|
|
348
280
|
id: string;
|
|
349
|
-
type: import("
|
|
281
|
+
type: import("../../types").OverwriteType;
|
|
350
282
|
allow: string;
|
|
351
283
|
deny: string;
|
|
352
284
|
}[] | undefined;
|
|
@@ -364,8 +296,8 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
|
|
|
364
296
|
oldValue?: string | undefined;
|
|
365
297
|
} | {
|
|
366
298
|
key: "privacy_level";
|
|
367
|
-
newValue?: import("
|
|
368
|
-
oldValue?: import("
|
|
299
|
+
newValue?: import("../../types").StageInstancePrivacyLevel | undefined;
|
|
300
|
+
oldValue?: import("../../types").StageInstancePrivacyLevel | undefined;
|
|
369
301
|
} | {
|
|
370
302
|
key: "prune_delete_days";
|
|
371
303
|
newValue?: number | undefined;
|
|
@@ -392,12 +324,12 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
|
|
|
392
324
|
oldValue?: string | undefined;
|
|
393
325
|
} | {
|
|
394
326
|
key: "status";
|
|
395
|
-
newValue?: import("
|
|
396
|
-
oldValue?: import("
|
|
327
|
+
newValue?: import("../../types").GuildScheduledEventStatus | undefined;
|
|
328
|
+
oldValue?: import("../../types").GuildScheduledEventStatus | undefined;
|
|
397
329
|
} | {
|
|
398
330
|
key: "system_channel_flags";
|
|
399
|
-
newValue?: import("
|
|
400
|
-
oldValue?: import("
|
|
331
|
+
newValue?: import("../../types").GuildSystemChannelFlags | undefined;
|
|
332
|
+
oldValue?: import("../../types").GuildSystemChannelFlags | undefined;
|
|
401
333
|
} | {
|
|
402
334
|
key: "system_channel_id";
|
|
403
335
|
newValue?: string | undefined;
|
|
@@ -418,7 +350,7 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
|
|
|
418
350
|
key: "trigger_metadata";
|
|
419
351
|
newValue?: {
|
|
420
352
|
keywordFilter?: string[] | undefined;
|
|
421
|
-
presets?: import("
|
|
353
|
+
presets?: import("../../types").AutoModerationRuleKeywordPresetType[] | undefined;
|
|
422
354
|
allowList?: string[] | undefined;
|
|
423
355
|
regexPatterns?: string[] | undefined;
|
|
424
356
|
mentionTotalLimit?: number | undefined;
|
|
@@ -426,7 +358,7 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
|
|
|
426
358
|
} | undefined;
|
|
427
359
|
oldValue?: {
|
|
428
360
|
keywordFilter?: string[] | undefined;
|
|
429
|
-
presets?: import("
|
|
361
|
+
presets?: import("../../types").AutoModerationRuleKeywordPresetType[] | undefined;
|
|
430
362
|
allowList?: string[] | undefined;
|
|
431
363
|
regexPatterns?: string[] | undefined;
|
|
432
364
|
mentionTotalLimit?: number | undefined;
|
|
@@ -434,8 +366,8 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
|
|
|
434
366
|
} | undefined;
|
|
435
367
|
} | {
|
|
436
368
|
key: "trigger_type";
|
|
437
|
-
newValue?: import("
|
|
438
|
-
oldValue?: import("
|
|
369
|
+
newValue?: import("../../types").AutoModerationRuleTriggerType | undefined;
|
|
370
|
+
oldValue?: import("../../types").AutoModerationRuleTriggerType | undefined;
|
|
439
371
|
} | {
|
|
440
372
|
key: "type";
|
|
441
373
|
newValue?: string | number | undefined;
|
|
@@ -454,8 +386,8 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
|
|
|
454
386
|
oldValue?: string | undefined;
|
|
455
387
|
} | {
|
|
456
388
|
key: "verification_level";
|
|
457
|
-
newValue?: import("
|
|
458
|
-
oldValue?: import("
|
|
389
|
+
newValue?: import("../../types").GuildVerificationLevel | undefined;
|
|
390
|
+
oldValue?: import("../../types").GuildVerificationLevel | undefined;
|
|
459
391
|
} | {
|
|
460
392
|
key: "widget_channel_id";
|
|
461
393
|
newValue?: string | undefined;
|
|
@@ -467,46 +399,46 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
|
|
|
467
399
|
})[] | undefined;
|
|
468
400
|
userId: string | null;
|
|
469
401
|
id: string;
|
|
470
|
-
actionType: import("
|
|
402
|
+
actionType: import("../../types").AuditLogEvent;
|
|
471
403
|
options?: {
|
|
472
404
|
autoModerationRuleName?: string | undefined;
|
|
473
|
-
autoModerationRuleTriggerType?: "1" | "3" | "4" | "5" | undefined;
|
|
405
|
+
autoModerationRuleTriggerType?: "1" | "3" | "4" | "5" | "6" | undefined;
|
|
474
406
|
deleteMemberDays?: string | undefined;
|
|
475
407
|
membersRemoved?: string | undefined;
|
|
476
408
|
channelId?: string | undefined;
|
|
477
409
|
messageId?: string | undefined;
|
|
478
410
|
count?: string | undefined;
|
|
479
411
|
id?: string | undefined;
|
|
480
|
-
type?: import("
|
|
412
|
+
type?: import("../../types").AuditLogOptionsType | undefined;
|
|
481
413
|
roleName?: string | undefined;
|
|
482
|
-
integrationType?: import("
|
|
414
|
+
integrationType?: import("../../types").APIGuildIntegrationType | undefined;
|
|
483
415
|
} | undefined;
|
|
484
416
|
reason?: string | undefined;
|
|
485
417
|
};
|
|
486
418
|
export declare const GUILD_BAN_ADD: (self: UsingClient, data: GatewayGuildBanAddDispatchData) => {
|
|
487
|
-
user: User;
|
|
419
|
+
user: import("../..").User;
|
|
488
420
|
guildId: string;
|
|
489
421
|
};
|
|
490
422
|
export declare const GUILD_BAN_REMOVE: (self: UsingClient, data: GatewayGuildBanRemoveDispatchData) => {
|
|
491
|
-
user: User;
|
|
423
|
+
user: import("../..").User;
|
|
492
424
|
guildId: string;
|
|
493
425
|
};
|
|
494
|
-
export declare const GUILD_CREATE: (self: UsingClient, data: GatewayGuildCreateDispatchData) => Guild<"create">;
|
|
495
|
-
export declare const GUILD_DELETE: (self: UsingClient, data: GatewayGuildDeleteDispatchData) => Promise<import("
|
|
426
|
+
export declare const GUILD_CREATE: (self: UsingClient, data: GatewayGuildCreateDispatchData) => import("../..").Guild<"create">;
|
|
427
|
+
export declare const GUILD_DELETE: (self: UsingClient, data: GatewayGuildDeleteDispatchData) => Promise<import("../../types").APIUnavailableGuild | import("../..").Guild<"cached">>;
|
|
496
428
|
export declare const GUILD_EMOJIS_UPDATE: (self: UsingClient, data: GatewayGuildEmojisUpdateDispatchData) => {
|
|
497
|
-
emojis: GuildEmoji[];
|
|
429
|
+
emojis: import("../..").GuildEmoji[];
|
|
498
430
|
guildId: string;
|
|
499
431
|
};
|
|
500
432
|
export declare const GUILD_INTEGRATIONS_UPDATE: (_self: UsingClient, data: GatewayGuildIntegrationsUpdateDispatchData) => {
|
|
501
433
|
guildId: string;
|
|
502
434
|
};
|
|
503
|
-
export declare const GUILD_MEMBER_ADD: (self: UsingClient, data:
|
|
435
|
+
export declare const GUILD_MEMBER_ADD: (self: UsingClient, data: GatewayGuildMemberAddDispatchData) => import("../..").GuildMember;
|
|
504
436
|
export declare const GUILD_MEMBER_REMOVE: (self: UsingClient, data: GatewayGuildMemberRemoveDispatchData) => {
|
|
505
|
-
user: User;
|
|
437
|
+
user: import("../..").User;
|
|
506
438
|
guildId: string;
|
|
507
439
|
};
|
|
508
440
|
export declare const GUILD_MEMBERS_CHUNK: (self: UsingClient, data: GatewayGuildMembersChunkDispatchData) => {
|
|
509
|
-
members: GuildMember[];
|
|
441
|
+
members: import("../..").GuildMember[];
|
|
510
442
|
guildId: string;
|
|
511
443
|
chunkIndex: number;
|
|
512
444
|
chunkCount: number;
|
|
@@ -526,16 +458,20 @@ export declare const GUILD_MEMBERS_CHUNK: (self: UsingClient, data: GatewayGuild
|
|
|
526
458
|
locale?: string | undefined;
|
|
527
459
|
verified?: boolean | undefined;
|
|
528
460
|
email?: string | null | undefined;
|
|
529
|
-
flags?: import("
|
|
530
|
-
premiumType?: import("
|
|
531
|
-
publicFlags?: import("
|
|
461
|
+
flags?: import("../../types").UserFlags | undefined;
|
|
462
|
+
premiumType?: import("../../types").UserPremiumType | undefined;
|
|
463
|
+
publicFlags?: import("../../types").UserFlags | undefined;
|
|
532
464
|
avatarDecoration?: string | null | undefined;
|
|
465
|
+
avatarDecorationData?: {
|
|
466
|
+
asset: string;
|
|
467
|
+
skuId: string;
|
|
468
|
+
} | null | undefined;
|
|
533
469
|
};
|
|
534
|
-
status?: import("
|
|
470
|
+
status?: import("../../types").PresenceUpdateReceiveStatus | undefined;
|
|
535
471
|
activities?: {
|
|
536
472
|
id: string;
|
|
537
473
|
name: string;
|
|
538
|
-
type: import("
|
|
474
|
+
type: import("../../types").ActivityType;
|
|
539
475
|
url?: string | null | undefined;
|
|
540
476
|
createdAt: number;
|
|
541
477
|
timestamps?: {
|
|
@@ -569,21 +505,21 @@ export declare const GUILD_MEMBERS_CHUNK: (self: UsingClient, data: GatewayGuild
|
|
|
569
505
|
spectate?: string | undefined;
|
|
570
506
|
} | undefined;
|
|
571
507
|
instance?: boolean | undefined;
|
|
572
|
-
flags?: import("
|
|
508
|
+
flags?: import("../../types").ActivityFlags | undefined;
|
|
573
509
|
buttons?: string[] | {
|
|
574
510
|
label: string;
|
|
575
511
|
url: string;
|
|
576
512
|
}[] | undefined;
|
|
577
513
|
}[] | undefined;
|
|
578
514
|
clientStatus?: {
|
|
579
|
-
desktop?: import("
|
|
580
|
-
mobile?: import("
|
|
581
|
-
web?: import("
|
|
515
|
+
desktop?: import("../../types").PresenceUpdateReceiveStatus | undefined;
|
|
516
|
+
mobile?: import("../../types").PresenceUpdateReceiveStatus | undefined;
|
|
517
|
+
web?: import("../../types").PresenceUpdateReceiveStatus | undefined;
|
|
582
518
|
} | undefined;
|
|
583
519
|
}[] | undefined;
|
|
584
520
|
nonce?: string | undefined;
|
|
585
521
|
};
|
|
586
|
-
export declare const GUILD_MEMBER_UPDATE: (self: UsingClient, data: GatewayGuildMemberUpdateDispatchData) => Promise<[member:
|
|
522
|
+
export declare const GUILD_MEMBER_UPDATE: (self: UsingClient, data: GatewayGuildMemberUpdateDispatchData) => Promise<[member: GuildMemberStructure, old?: GuildMemberStructure]>;
|
|
587
523
|
export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: UsingClient, data: GatewayGuildScheduledEventCreateDispatchData) => {
|
|
588
524
|
channelId: string;
|
|
589
525
|
entityMetadata: undefined;
|
|
@@ -594,9 +530,9 @@ export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: UsingClient, data: Ga
|
|
|
594
530
|
description?: string | null | undefined;
|
|
595
531
|
scheduledStartTime: string;
|
|
596
532
|
scheduledEndTime: string | null;
|
|
597
|
-
privacyLevel: import("
|
|
598
|
-
status: import("
|
|
599
|
-
entityType: import("
|
|
533
|
+
privacyLevel: import("../../types").GuildScheduledEventPrivacyLevel;
|
|
534
|
+
status: import("../../types").GuildScheduledEventStatus;
|
|
535
|
+
entityType: import("../../types").GuildScheduledEventEntityType.StageInstance;
|
|
600
536
|
entityId: string | null;
|
|
601
537
|
creator?: {
|
|
602
538
|
id: string;
|
|
@@ -612,10 +548,11 @@ export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: UsingClient, data: Ga
|
|
|
612
548
|
locale?: string | undefined;
|
|
613
549
|
verified?: boolean | undefined;
|
|
614
550
|
email?: string | null | undefined;
|
|
615
|
-
flags?: import("
|
|
616
|
-
premiumType?: import("
|
|
617
|
-
publicFlags?: import("
|
|
551
|
+
flags?: import("../../types").UserFlags | undefined;
|
|
552
|
+
premiumType?: import("../../types").UserPremiumType | undefined;
|
|
553
|
+
publicFlags?: import("../../types").UserFlags | undefined;
|
|
618
554
|
avatarDecoration?: string | null | undefined;
|
|
555
|
+
avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
|
|
619
556
|
} | undefined;
|
|
620
557
|
userCount?: number | undefined;
|
|
621
558
|
image?: string | null | undefined;
|
|
@@ -629,9 +566,9 @@ export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: UsingClient, data: Ga
|
|
|
629
566
|
description?: string | null | undefined;
|
|
630
567
|
scheduledStartTime: string;
|
|
631
568
|
scheduledEndTime: string | null;
|
|
632
|
-
privacyLevel: import("
|
|
633
|
-
status: import("
|
|
634
|
-
entityType: import("
|
|
569
|
+
privacyLevel: import("../../types").GuildScheduledEventPrivacyLevel;
|
|
570
|
+
status: import("../../types").GuildScheduledEventStatus;
|
|
571
|
+
entityType: import("../../types").GuildScheduledEventEntityType.Voice;
|
|
635
572
|
entityId: string | null;
|
|
636
573
|
creator?: {
|
|
637
574
|
id: string;
|
|
@@ -647,10 +584,11 @@ export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: UsingClient, data: Ga
|
|
|
647
584
|
locale?: string | undefined;
|
|
648
585
|
verified?: boolean | undefined;
|
|
649
586
|
email?: string | null | undefined;
|
|
650
|
-
flags?: import("
|
|
651
|
-
premiumType?: import("
|
|
652
|
-
publicFlags?: import("
|
|
587
|
+
flags?: import("../../types").UserFlags | undefined;
|
|
588
|
+
premiumType?: import("../../types").UserPremiumType | undefined;
|
|
589
|
+
publicFlags?: import("../../types").UserFlags | undefined;
|
|
653
590
|
avatarDecoration?: string | null | undefined;
|
|
591
|
+
avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
|
|
654
592
|
} | undefined;
|
|
655
593
|
userCount?: number | undefined;
|
|
656
594
|
image?: string | null | undefined;
|
|
@@ -666,9 +604,9 @@ export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: UsingClient, data: Ga
|
|
|
666
604
|
description?: string | null | undefined;
|
|
667
605
|
scheduledStartTime: string;
|
|
668
606
|
scheduledEndTime: string | null;
|
|
669
|
-
privacyLevel: import("
|
|
670
|
-
status: import("
|
|
671
|
-
entityType: import("
|
|
607
|
+
privacyLevel: import("../../types").GuildScheduledEventPrivacyLevel;
|
|
608
|
+
status: import("../../types").GuildScheduledEventStatus;
|
|
609
|
+
entityType: import("../../types").GuildScheduledEventEntityType.External;
|
|
672
610
|
entityId: string | null;
|
|
673
611
|
creator?: {
|
|
674
612
|
id: string;
|
|
@@ -684,10 +622,11 @@ export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: UsingClient, data: Ga
|
|
|
684
622
|
locale?: string | undefined;
|
|
685
623
|
verified?: boolean | undefined;
|
|
686
624
|
email?: string | null | undefined;
|
|
687
|
-
flags?: import("
|
|
688
|
-
premiumType?: import("
|
|
689
|
-
publicFlags?: import("
|
|
625
|
+
flags?: import("../../types").UserFlags | undefined;
|
|
626
|
+
premiumType?: import("../../types").UserPremiumType | undefined;
|
|
627
|
+
publicFlags?: import("../../types").UserFlags | undefined;
|
|
690
628
|
avatarDecoration?: string | null | undefined;
|
|
629
|
+
avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
|
|
691
630
|
} | undefined;
|
|
692
631
|
userCount?: number | undefined;
|
|
693
632
|
image?: string | null | undefined;
|
|
@@ -702,9 +641,9 @@ export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: UsingClient, data: Ga
|
|
|
702
641
|
description?: string | null | undefined;
|
|
703
642
|
scheduledStartTime: string;
|
|
704
643
|
scheduledEndTime: string | null;
|
|
705
|
-
privacyLevel: import("
|
|
706
|
-
status: import("
|
|
707
|
-
entityType: import("
|
|
644
|
+
privacyLevel: import("../../types").GuildScheduledEventPrivacyLevel;
|
|
645
|
+
status: import("../../types").GuildScheduledEventStatus;
|
|
646
|
+
entityType: import("../../types").GuildScheduledEventEntityType.StageInstance;
|
|
708
647
|
entityId: string | null;
|
|
709
648
|
creator?: {
|
|
710
649
|
id: string;
|
|
@@ -720,10 +659,11 @@ export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: UsingClient, data: Ga
|
|
|
720
659
|
locale?: string | undefined;
|
|
721
660
|
verified?: boolean | undefined;
|
|
722
661
|
email?: string | null | undefined;
|
|
723
|
-
flags?: import("
|
|
724
|
-
premiumType?: import("
|
|
725
|
-
publicFlags?: import("
|
|
662
|
+
flags?: import("../../types").UserFlags | undefined;
|
|
663
|
+
premiumType?: import("../../types").UserPremiumType | undefined;
|
|
664
|
+
publicFlags?: import("../../types").UserFlags | undefined;
|
|
726
665
|
avatarDecoration?: string | null | undefined;
|
|
666
|
+
avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
|
|
727
667
|
} | undefined;
|
|
728
668
|
userCount?: number | undefined;
|
|
729
669
|
image?: string | null | undefined;
|
|
@@ -737,9 +677,9 @@ export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: UsingClient, data: Ga
|
|
|
737
677
|
description?: string | null | undefined;
|
|
738
678
|
scheduledStartTime: string;
|
|
739
679
|
scheduledEndTime: string | null;
|
|
740
|
-
privacyLevel: import("
|
|
741
|
-
status: import("
|
|
742
|
-
entityType: import("
|
|
680
|
+
privacyLevel: import("../../types").GuildScheduledEventPrivacyLevel;
|
|
681
|
+
status: import("../../types").GuildScheduledEventStatus;
|
|
682
|
+
entityType: import("../../types").GuildScheduledEventEntityType.Voice;
|
|
743
683
|
entityId: string | null;
|
|
744
684
|
creator?: {
|
|
745
685
|
id: string;
|
|
@@ -755,10 +695,11 @@ export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: UsingClient, data: Ga
|
|
|
755
695
|
locale?: string | undefined;
|
|
756
696
|
verified?: boolean | undefined;
|
|
757
697
|
email?: string | null | undefined;
|
|
758
|
-
flags?: import("
|
|
759
|
-
premiumType?: import("
|
|
760
|
-
publicFlags?: import("
|
|
698
|
+
flags?: import("../../types").UserFlags | undefined;
|
|
699
|
+
premiumType?: import("../../types").UserPremiumType | undefined;
|
|
700
|
+
publicFlags?: import("../../types").UserFlags | undefined;
|
|
761
701
|
avatarDecoration?: string | null | undefined;
|
|
702
|
+
avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
|
|
762
703
|
} | undefined;
|
|
763
704
|
userCount?: number | undefined;
|
|
764
705
|
image?: string | null | undefined;
|
|
@@ -774,9 +715,9 @@ export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: UsingClient, data: Ga
|
|
|
774
715
|
description?: string | null | undefined;
|
|
775
716
|
scheduledStartTime: string;
|
|
776
717
|
scheduledEndTime: string | null;
|
|
777
|
-
privacyLevel: import("
|
|
778
|
-
status: import("
|
|
779
|
-
entityType: import("
|
|
718
|
+
privacyLevel: import("../../types").GuildScheduledEventPrivacyLevel;
|
|
719
|
+
status: import("../../types").GuildScheduledEventStatus;
|
|
720
|
+
entityType: import("../../types").GuildScheduledEventEntityType.External;
|
|
780
721
|
entityId: string | null;
|
|
781
722
|
creator?: {
|
|
782
723
|
id: string;
|
|
@@ -792,10 +733,11 @@ export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: UsingClient, data: Ga
|
|
|
792
733
|
locale?: string | undefined;
|
|
793
734
|
verified?: boolean | undefined;
|
|
794
735
|
email?: string | null | undefined;
|
|
795
|
-
flags?: import("
|
|
796
|
-
premiumType?: import("
|
|
797
|
-
publicFlags?: import("
|
|
736
|
+
flags?: import("../../types").UserFlags | undefined;
|
|
737
|
+
premiumType?: import("../../types").UserPremiumType | undefined;
|
|
738
|
+
publicFlags?: import("../../types").UserFlags | undefined;
|
|
798
739
|
avatarDecoration?: string | null | undefined;
|
|
740
|
+
avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
|
|
799
741
|
} | undefined;
|
|
800
742
|
userCount?: number | undefined;
|
|
801
743
|
image?: string | null | undefined;
|
|
@@ -810,9 +752,9 @@ export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: UsingClient, data: Ga
|
|
|
810
752
|
description?: string | null | undefined;
|
|
811
753
|
scheduledStartTime: string;
|
|
812
754
|
scheduledEndTime: string | null;
|
|
813
|
-
privacyLevel: import("
|
|
814
|
-
status: import("
|
|
815
|
-
entityType: import("
|
|
755
|
+
privacyLevel: import("../../types").GuildScheduledEventPrivacyLevel;
|
|
756
|
+
status: import("../../types").GuildScheduledEventStatus;
|
|
757
|
+
entityType: import("../../types").GuildScheduledEventEntityType.StageInstance;
|
|
816
758
|
entityId: string | null;
|
|
817
759
|
creator?: {
|
|
818
760
|
id: string;
|
|
@@ -828,10 +770,11 @@ export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: UsingClient, data: Ga
|
|
|
828
770
|
locale?: string | undefined;
|
|
829
771
|
verified?: boolean | undefined;
|
|
830
772
|
email?: string | null | undefined;
|
|
831
|
-
flags?: import("
|
|
832
|
-
premiumType?: import("
|
|
833
|
-
publicFlags?: import("
|
|
773
|
+
flags?: import("../../types").UserFlags | undefined;
|
|
774
|
+
premiumType?: import("../../types").UserPremiumType | undefined;
|
|
775
|
+
publicFlags?: import("../../types").UserFlags | undefined;
|
|
834
776
|
avatarDecoration?: string | null | undefined;
|
|
777
|
+
avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
|
|
835
778
|
} | undefined;
|
|
836
779
|
userCount?: number | undefined;
|
|
837
780
|
image?: string | null | undefined;
|
|
@@ -845,9 +788,9 @@ export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: UsingClient, data: Ga
|
|
|
845
788
|
description?: string | null | undefined;
|
|
846
789
|
scheduledStartTime: string;
|
|
847
790
|
scheduledEndTime: string | null;
|
|
848
|
-
privacyLevel: import("
|
|
849
|
-
status: import("
|
|
850
|
-
entityType: import("
|
|
791
|
+
privacyLevel: import("../../types").GuildScheduledEventPrivacyLevel;
|
|
792
|
+
status: import("../../types").GuildScheduledEventStatus;
|
|
793
|
+
entityType: import("../../types").GuildScheduledEventEntityType.Voice;
|
|
851
794
|
entityId: string | null;
|
|
852
795
|
creator?: {
|
|
853
796
|
id: string;
|
|
@@ -863,10 +806,11 @@ export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: UsingClient, data: Ga
|
|
|
863
806
|
locale?: string | undefined;
|
|
864
807
|
verified?: boolean | undefined;
|
|
865
808
|
email?: string | null | undefined;
|
|
866
|
-
flags?: import("
|
|
867
|
-
premiumType?: import("
|
|
868
|
-
publicFlags?: import("
|
|
809
|
+
flags?: import("../../types").UserFlags | undefined;
|
|
810
|
+
premiumType?: import("../../types").UserPremiumType | undefined;
|
|
811
|
+
publicFlags?: import("../../types").UserFlags | undefined;
|
|
869
812
|
avatarDecoration?: string | null | undefined;
|
|
813
|
+
avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
|
|
870
814
|
} | undefined;
|
|
871
815
|
userCount?: number | undefined;
|
|
872
816
|
image?: string | null | undefined;
|
|
@@ -882,9 +826,9 @@ export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: UsingClient, data: Ga
|
|
|
882
826
|
description?: string | null | undefined;
|
|
883
827
|
scheduledStartTime: string;
|
|
884
828
|
scheduledEndTime: string | null;
|
|
885
|
-
privacyLevel: import("
|
|
886
|
-
status: import("
|
|
887
|
-
entityType: import("
|
|
829
|
+
privacyLevel: import("../../types").GuildScheduledEventPrivacyLevel;
|
|
830
|
+
status: import("../../types").GuildScheduledEventStatus;
|
|
831
|
+
entityType: import("../../types").GuildScheduledEventEntityType.External;
|
|
888
832
|
entityId: string | null;
|
|
889
833
|
creator?: {
|
|
890
834
|
id: string;
|
|
@@ -900,10 +844,11 @@ export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: UsingClient, data: Ga
|
|
|
900
844
|
locale?: string | undefined;
|
|
901
845
|
verified?: boolean | undefined;
|
|
902
846
|
email?: string | null | undefined;
|
|
903
|
-
flags?: import("
|
|
904
|
-
premiumType?: import("
|
|
905
|
-
publicFlags?: import("
|
|
847
|
+
flags?: import("../../types").UserFlags | undefined;
|
|
848
|
+
premiumType?: import("../../types").UserPremiumType | undefined;
|
|
849
|
+
publicFlags?: import("../../types").UserFlags | undefined;
|
|
906
850
|
avatarDecoration?: string | null | undefined;
|
|
851
|
+
avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
|
|
907
852
|
} | undefined;
|
|
908
853
|
userCount?: number | undefined;
|
|
909
854
|
image?: string | null | undefined;
|
|
@@ -918,14 +863,14 @@ export declare const GUILD_SCHEDULED_EVENT_USER_REMOVE: (_self: UsingClient, dat
|
|
|
918
863
|
userId: string;
|
|
919
864
|
guildId: string;
|
|
920
865
|
};
|
|
921
|
-
export declare const GUILD_ROLE_CREATE: (self: UsingClient, data: GatewayGuildRoleCreateDispatchData) => GuildRole;
|
|
922
|
-
export declare const GUILD_ROLE_DELETE: (self: UsingClient, data: GatewayGuildRoleDeleteDispatchData) => Promise<GuildRole | {
|
|
866
|
+
export declare const GUILD_ROLE_CREATE: (self: UsingClient, data: GatewayGuildRoleCreateDispatchData) => import("../..").GuildRole;
|
|
867
|
+
export declare const GUILD_ROLE_DELETE: (self: UsingClient, data: GatewayGuildRoleDeleteDispatchData) => Promise<import("../..").GuildRole | {
|
|
923
868
|
guildId: string;
|
|
924
869
|
roleId: string;
|
|
925
870
|
}>;
|
|
926
|
-
export declare const GUILD_ROLE_UPDATE: (self: UsingClient, data: GatewayGuildRoleUpdateDispatchData) => Promise<[role:
|
|
871
|
+
export declare const GUILD_ROLE_UPDATE: (self: UsingClient, data: GatewayGuildRoleUpdateDispatchData) => Promise<[role: GuildRoleStructure, old?: GuildRoleStructure]>;
|
|
927
872
|
export declare const GUILD_STICKERS_UPDATE: (self: UsingClient, data: GatewayGuildStickersUpdateDispatchData) => {
|
|
928
|
-
stickers: Sticker[];
|
|
873
|
+
stickers: import("../..").Sticker[];
|
|
929
874
|
guildId: string;
|
|
930
875
|
};
|
|
931
|
-
export declare const GUILD_UPDATE: (self: UsingClient, data: GatewayGuildUpdateDispatchData) => Promise<[guild:
|
|
876
|
+
export declare const GUILD_UPDATE: (self: UsingClient, data: GatewayGuildUpdateDispatchData) => Promise<[guild: GuildStructure, old?: GuildStructure<"cached">]>;
|