seyfert 1.5.0 → 2.1.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 +18 -10
- package/lib/api/Router.js +2 -2
- 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 +5 -2
- package/lib/api/Routes/interactions.d.ts +8 -2
- package/lib/api/Routes/invites.d.ts +1 -1
- package/lib/api/Routes/skus.d.ts +11 -0
- package/lib/api/Routes/skus.js +2 -0
- 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 +3 -3
- package/lib/api/api.js +15 -25
- package/lib/api/bucket.d.ts +0 -1
- package/lib/api/shared.d.ts +1 -2
- 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 +3 -4
- package/lib/builders/Attachment.js +24 -25
- 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 +20 -8
- package/lib/cache/index.js +328 -22
- package/lib/cache/resources/bans.d.ts +9 -6
- package/lib/cache/resources/bans.js +13 -4
- 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 +22 -6
- package/lib/cache/resources/messages.d.ts +11 -7
- package/lib/cache/resources/messages.js +19 -7
- 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 +29 -21
- package/lib/client/base.js +64 -57
- package/lib/client/client.d.ts +11 -16
- package/lib/client/client.js +51 -37
- package/lib/client/collectors.d.ts +10 -10
- package/lib/client/collectors.js +26 -1
- 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 +16 -15
- package/lib/client/workerclient.js +130 -72
- package/lib/commands/applications/chat.d.ts +35 -34
- package/lib/commands/applications/chat.js +5 -9
- package/lib/commands/applications/chatcontext.d.ts +17 -17
- package/lib/commands/applications/chatcontext.js +5 -5
- package/lib/commands/applications/entryPoint.d.ts +46 -0
- package/lib/commands/applications/entryPoint.js +56 -0
- package/lib/commands/applications/entrycontext.d.ts +40 -0
- package/lib/commands/applications/entrycontext.js +85 -0
- package/lib/commands/applications/menu.d.ts +2 -3
- package/lib/commands/applications/menu.js +2 -5
- package/lib/commands/applications/menucontext.d.ts +14 -13
- package/lib/commands/applications/menucontext.js +9 -9
- package/lib/commands/applications/options.d.ts +4 -3
- package/lib/commands/applications/options.js +20 -21
- package/lib/commands/applications/shared.d.ts +3 -1
- package/lib/commands/decorators.d.ts +47 -35
- package/lib/commands/decorators.js +20 -18
- package/lib/commands/handle.d.ts +65 -0
- package/lib/commands/handle.js +727 -0
- package/lib/commands/handler.d.ts +29 -18
- package/lib/commands/handler.js +295 -164
- package/lib/commands/index.d.ts +2 -0
- package/lib/commands/index.js +2 -0
- package/lib/commands/optionresolver.d.ts +13 -13
- package/lib/commands/optionresolver.js +24 -29
- package/lib/common/bot/watcher.d.ts +4 -33
- package/lib/common/bot/watcher.js +0 -109
- package/lib/common/index.d.ts +1 -0
- package/lib/common/index.js +1 -0
- package/lib/common/it/colors.js +48 -49
- package/lib/common/it/formatter.d.ts +32 -0
- package/lib/common/it/formatter.js +42 -0
- package/lib/common/it/logger.d.ts +0 -1
- package/lib/common/it/logger.js +3 -3
- package/lib/common/it/utils.d.ts +24 -4
- package/lib/common/it/utils.js +88 -17
- package/lib/common/shorters/application.d.ts +56 -0
- package/lib/common/shorters/application.js +81 -0
- package/lib/common/shorters/bans.d.ts +4 -5
- package/lib/common/shorters/bans.js +3 -3
- 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 +5 -5
- package/lib/common/shorters/guilds.d.ts +18 -16
- package/lib/common/shorters/guilds.js +31 -26
- package/lib/common/shorters/interaction.d.ts +7 -7
- package/lib/common/shorters/interaction.js +3 -2
- 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 +8 -7
- 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 +10 -9
- package/lib/common/types/resolvables.d.ts +2 -2
- package/lib/common/types/util.d.ts +4 -2
- package/lib/common/types/write.d.ts +3 -3
- 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.js +2 -2
- package/lib/components/componentcontext.d.ts +10 -9
- package/lib/components/componentcontext.js +8 -8
- package/lib/components/handler.d.ts +15 -14
- package/lib/components/handler.js +89 -93
- package/lib/components/index.d.ts +3 -3
- package/lib/components/index.js +12 -10
- package/lib/components/modalcontext.d.ts +12 -11
- package/lib/components/modalcontext.js +2 -2
- package/lib/deps/mixer.d.ts +8 -0
- package/lib/deps/mixer.js +71 -0
- package/lib/events/handler.d.ts +35 -13
- package/lib/events/handler.js +57 -24
- 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 +4 -3
- package/lib/events/hooks/custom.js +5 -1
- 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 +125 -125
- package/lib/events/hooks/guild.js +13 -15
- package/lib/events/hooks/integration.d.ts +27 -28
- 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 -17
- package/lib/events/hooks/message.d.ts +69 -54
- package/lib/events/hooks/message.js +4 -8
- package/lib/events/hooks/presence.d.ts +17 -16
- package/lib/events/hooks/stage.d.ts +4 -4
- package/lib/events/hooks/subscriptions.d.ts +35 -0
- package/lib/events/hooks/subscriptions.js +16 -0
- package/lib/events/hooks/thread.d.ts +132 -63
- package/lib/events/hooks/thread.js +4 -4
- package/lib/events/hooks/typing.d.ts +28 -6
- 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 +5 -14
- package/lib/index.js +7 -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 +33 -34
- package/lib/structures/Guild.js +5 -2
- package/lib/structures/GuildBan.d.ts +6 -6
- package/lib/structures/GuildBan.js +2 -1
- package/lib/structures/GuildEmoji.d.ts +4 -4
- package/lib/structures/GuildEmoji.js +3 -2
- package/lib/structures/GuildMember.d.ts +20 -17
- package/lib/structures/GuildMember.js +18 -8
- 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 +76 -39
- package/lib/structures/Interaction.js +179 -94
- package/lib/structures/Message.d.ts +29 -33
- package/lib/structures/Message.js +8 -12
- package/lib/structures/Poll.d.ts +4 -3
- package/lib/structures/Poll.js +6 -2
- package/lib/structures/Sticker.d.ts +7 -7
- package/lib/structures/Sticker.js +7 -7
- package/lib/structures/User.d.ts +5 -4
- package/lib/structures/User.js +2 -1
- 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 +11 -10
- package/lib/structures/channels.js +70 -65
- package/lib/structures/extra/BaseGuild.d.ts +12 -2
- package/lib/structures/extra/BaseGuild.js +30 -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 +1554 -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 +65 -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 +188 -0
- package/lib/types/payloads/_interactions/applicationCommands.js +88 -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 +184 -0
- package/lib/types/payloads/_interactions/responses.js +58 -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 +1748 -0
- package/lib/types/payloads/channel.js +376 -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 +178 -0
- package/lib/types/payloads/monetization.js +88 -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 +699 -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 +216 -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 +103 -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 +808 -0
- package/lib/types/utils/index.js +810 -0
- package/lib/websocket/SharedTypes.d.ts +12 -5
- package/lib/websocket/SharedTypes.js +1 -1
- package/lib/websocket/constants/index.d.ts +3 -3
- package/lib/websocket/constants/index.js +11 -1
- package/lib/websocket/discord/basesocket.d.ts +7 -7
- package/lib/websocket/discord/basesocket.js +34 -22
- 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 +83 -57
- package/lib/websocket/discord/sharder.d.ts +6 -5
- package/lib/websocket/discord/sharder.js +70 -11
- package/lib/websocket/discord/shared.d.ts +34 -6
- package/lib/websocket/discord/socket/custom.d.ts +52 -0
- package/lib/websocket/discord/socket/custom.js +300 -0
- package/lib/websocket/discord/worker.d.ts +6 -10
- package/lib/websocket/discord/workermanager.d.ts +10 -16
- package/lib/websocket/discord/workermanager.js +63 -50
- 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 +70 -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 -13
- package/lib/client/onmessagecreate.js +0 -410
- package/lib/structures/extra/functions.d.ts +0 -12
- package/lib/structures/extra/functions.js +0 -70
|
@@ -1,33 +1,33 @@
|
|
|
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;
|
|
7
7
|
changes?: ({
|
|
8
8
|
key: "$add";
|
|
9
9
|
newValue?: {
|
|
10
|
-
name: string;
|
|
11
10
|
id: string;
|
|
11
|
+
name: string;
|
|
12
12
|
}[] | undefined;
|
|
13
13
|
oldValue?: {
|
|
14
|
-
name: string;
|
|
15
14
|
id: string;
|
|
15
|
+
name: string;
|
|
16
16
|
}[] | undefined;
|
|
17
17
|
} | {
|
|
18
18
|
key: "$remove";
|
|
19
19
|
newValue?: {
|
|
20
|
-
name: string;
|
|
21
20
|
id: string;
|
|
21
|
+
name: string;
|
|
22
22
|
}[] | undefined;
|
|
23
23
|
oldValue?: {
|
|
24
|
-
name: string;
|
|
25
24
|
id: string;
|
|
25
|
+
name: string;
|
|
26
26
|
}[] | undefined;
|
|
27
27
|
} | {
|
|
28
28
|
key: "actions";
|
|
29
29
|
newValue?: {
|
|
30
|
-
type: import("
|
|
30
|
+
type: import("../../types").AutoModerationActionType;
|
|
31
31
|
metadata?: {
|
|
32
32
|
channelId?: string | undefined;
|
|
33
33
|
durationSeconds?: number | undefined;
|
|
@@ -35,7 +35,7 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
|
|
|
35
35
|
} | undefined;
|
|
36
36
|
}[] | undefined;
|
|
37
37
|
oldValue?: {
|
|
38
|
-
type: import("
|
|
38
|
+
type: import("../../types").AutoModerationActionType;
|
|
39
39
|
metadata?: {
|
|
40
40
|
channelId?: string | undefined;
|
|
41
41
|
durationSeconds?: number | undefined;
|
|
@@ -128,8 +128,8 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
|
|
|
128
128
|
oldValue?: number | undefined;
|
|
129
129
|
} | {
|
|
130
130
|
key: "default_message_notifications";
|
|
131
|
-
newValue?: import("
|
|
132
|
-
oldValue?: import("
|
|
131
|
+
newValue?: import("../../types").GuildDefaultMessageNotifications | undefined;
|
|
132
|
+
oldValue?: import("../../types").GuildDefaultMessageNotifications | undefined;
|
|
133
133
|
} | {
|
|
134
134
|
key: "default_reaction_emoji";
|
|
135
135
|
newValue?: {
|
|
@@ -166,12 +166,12 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
|
|
|
166
166
|
oldValue?: boolean | undefined;
|
|
167
167
|
} | {
|
|
168
168
|
key: "entity_type";
|
|
169
|
-
newValue?: import("
|
|
170
|
-
oldValue?: import("
|
|
169
|
+
newValue?: import("../../types").GuildScheduledEventEntityType | undefined;
|
|
170
|
+
oldValue?: import("../../types").GuildScheduledEventEntityType | undefined;
|
|
171
171
|
} | {
|
|
172
172
|
key: "event_type";
|
|
173
|
-
newValue?: import("
|
|
174
|
-
oldValue?: import("
|
|
173
|
+
newValue?: import("../../types").AutoModerationRuleEventType | undefined;
|
|
174
|
+
oldValue?: import("../../types").AutoModerationRuleEventType | undefined;
|
|
175
175
|
} | {
|
|
176
176
|
key: "exempt_channels";
|
|
177
177
|
newValue?: string[] | undefined;
|
|
@@ -182,24 +182,24 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
|
|
|
182
182
|
oldValue?: string[] | undefined;
|
|
183
183
|
} | {
|
|
184
184
|
key: "expire_behavior";
|
|
185
|
-
newValue?: import("
|
|
186
|
-
oldValue?: import("
|
|
185
|
+
newValue?: import("../../types").IntegrationExpireBehavior | undefined;
|
|
186
|
+
oldValue?: import("../../types").IntegrationExpireBehavior | undefined;
|
|
187
187
|
} | {
|
|
188
188
|
key: "expire_grace_period";
|
|
189
189
|
newValue?: number | undefined;
|
|
190
190
|
oldValue?: number | undefined;
|
|
191
191
|
} | {
|
|
192
192
|
key: "explicit_content_filter";
|
|
193
|
-
newValue?: import("
|
|
194
|
-
oldValue?: import("
|
|
193
|
+
newValue?: import("../../types").GuildExplicitContentFilter | undefined;
|
|
194
|
+
oldValue?: import("../../types").GuildExplicitContentFilter | undefined;
|
|
195
195
|
} | {
|
|
196
196
|
key: "flags";
|
|
197
197
|
newValue?: number | undefined;
|
|
198
198
|
oldValue?: number | undefined;
|
|
199
199
|
} | {
|
|
200
200
|
key: "format_type";
|
|
201
|
-
newValue?: import("
|
|
202
|
-
oldValue?: import("
|
|
201
|
+
newValue?: import("../../types").StickerFormatType | undefined;
|
|
202
|
+
oldValue?: import("../../types").StickerFormatType | undefined;
|
|
203
203
|
} | {
|
|
204
204
|
key: "guild_id";
|
|
205
205
|
newValue?: string | undefined;
|
|
@@ -246,8 +246,8 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
|
|
|
246
246
|
oldValue?: boolean | undefined;
|
|
247
247
|
} | {
|
|
248
248
|
key: "mfa_level";
|
|
249
|
-
newValue?: import("
|
|
250
|
-
oldValue?: import("
|
|
249
|
+
newValue?: import("../../types").GuildMFALevel | undefined;
|
|
250
|
+
oldValue?: import("../../types").GuildMFALevel | undefined;
|
|
251
251
|
} | {
|
|
252
252
|
key: "mute";
|
|
253
253
|
newValue?: boolean | undefined;
|
|
@@ -272,13 +272,13 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
|
|
|
272
272
|
key: "permission_overwrites";
|
|
273
273
|
newValue?: {
|
|
274
274
|
id: string;
|
|
275
|
-
type: import("
|
|
275
|
+
type: import("../../types").OverwriteType;
|
|
276
276
|
allow: string;
|
|
277
277
|
deny: string;
|
|
278
278
|
}[] | undefined;
|
|
279
279
|
oldValue?: {
|
|
280
280
|
id: string;
|
|
281
|
-
type: import("
|
|
281
|
+
type: import("../../types").OverwriteType;
|
|
282
282
|
allow: string;
|
|
283
283
|
deny: string;
|
|
284
284
|
}[] | undefined;
|
|
@@ -296,8 +296,8 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
|
|
|
296
296
|
oldValue?: string | undefined;
|
|
297
297
|
} | {
|
|
298
298
|
key: "privacy_level";
|
|
299
|
-
newValue?: import("
|
|
300
|
-
oldValue?: import("
|
|
299
|
+
newValue?: import("../../types").StageInstancePrivacyLevel | undefined;
|
|
300
|
+
oldValue?: import("../../types").StageInstancePrivacyLevel | undefined;
|
|
301
301
|
} | {
|
|
302
302
|
key: "prune_delete_days";
|
|
303
303
|
newValue?: number | undefined;
|
|
@@ -324,12 +324,12 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
|
|
|
324
324
|
oldValue?: string | undefined;
|
|
325
325
|
} | {
|
|
326
326
|
key: "status";
|
|
327
|
-
newValue?: import("
|
|
328
|
-
oldValue?: import("
|
|
327
|
+
newValue?: import("../../types").GuildScheduledEventStatus | undefined;
|
|
328
|
+
oldValue?: import("../../types").GuildScheduledEventStatus | undefined;
|
|
329
329
|
} | {
|
|
330
330
|
key: "system_channel_flags";
|
|
331
|
-
newValue?: import("
|
|
332
|
-
oldValue?: import("
|
|
331
|
+
newValue?: import("../../types").GuildSystemChannelFlags | undefined;
|
|
332
|
+
oldValue?: import("../../types").GuildSystemChannelFlags | undefined;
|
|
333
333
|
} | {
|
|
334
334
|
key: "system_channel_id";
|
|
335
335
|
newValue?: string | undefined;
|
|
@@ -350,7 +350,7 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
|
|
|
350
350
|
key: "trigger_metadata";
|
|
351
351
|
newValue?: {
|
|
352
352
|
keywordFilter?: string[] | undefined;
|
|
353
|
-
presets?: import("
|
|
353
|
+
presets?: import("../../types").AutoModerationRuleKeywordPresetType[] | undefined;
|
|
354
354
|
allowList?: string[] | undefined;
|
|
355
355
|
regexPatterns?: string[] | undefined;
|
|
356
356
|
mentionTotalLimit?: number | undefined;
|
|
@@ -358,7 +358,7 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
|
|
|
358
358
|
} | undefined;
|
|
359
359
|
oldValue?: {
|
|
360
360
|
keywordFilter?: string[] | undefined;
|
|
361
|
-
presets?: import("
|
|
361
|
+
presets?: import("../../types").AutoModerationRuleKeywordPresetType[] | undefined;
|
|
362
362
|
allowList?: string[] | undefined;
|
|
363
363
|
regexPatterns?: string[] | undefined;
|
|
364
364
|
mentionTotalLimit?: number | undefined;
|
|
@@ -366,8 +366,8 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
|
|
|
366
366
|
} | undefined;
|
|
367
367
|
} | {
|
|
368
368
|
key: "trigger_type";
|
|
369
|
-
newValue?: import("
|
|
370
|
-
oldValue?: import("
|
|
369
|
+
newValue?: import("../../types").AutoModerationRuleTriggerType | undefined;
|
|
370
|
+
oldValue?: import("../../types").AutoModerationRuleTriggerType | undefined;
|
|
371
371
|
} | {
|
|
372
372
|
key: "type";
|
|
373
373
|
newValue?: string | number | undefined;
|
|
@@ -386,8 +386,8 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
|
|
|
386
386
|
oldValue?: string | undefined;
|
|
387
387
|
} | {
|
|
388
388
|
key: "verification_level";
|
|
389
|
-
newValue?: import("
|
|
390
|
-
oldValue?: import("
|
|
389
|
+
newValue?: import("../../types").GuildVerificationLevel | undefined;
|
|
390
|
+
oldValue?: import("../../types").GuildVerificationLevel | undefined;
|
|
391
391
|
} | {
|
|
392
392
|
key: "widget_channel_id";
|
|
393
393
|
newValue?: string | undefined;
|
|
@@ -399,7 +399,7 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
|
|
|
399
399
|
})[] | undefined;
|
|
400
400
|
userId: string | null;
|
|
401
401
|
id: string;
|
|
402
|
-
actionType: import("
|
|
402
|
+
actionType: import("../../types").AuditLogEvent;
|
|
403
403
|
options?: {
|
|
404
404
|
autoModerationRuleName?: string | undefined;
|
|
405
405
|
autoModerationRuleTriggerType?: "1" | "3" | "4" | "5" | "6" | undefined;
|
|
@@ -409,36 +409,36 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
|
|
|
409
409
|
messageId?: string | undefined;
|
|
410
410
|
count?: string | undefined;
|
|
411
411
|
id?: string | undefined;
|
|
412
|
-
type?: import("
|
|
412
|
+
type?: import("../../types").AuditLogOptionsType | undefined;
|
|
413
413
|
roleName?: string | undefined;
|
|
414
|
-
integrationType?: import("
|
|
414
|
+
integrationType?: import("../../types").APIGuildIntegrationType | undefined;
|
|
415
415
|
} | undefined;
|
|
416
416
|
reason?: string | undefined;
|
|
417
417
|
};
|
|
418
418
|
export declare const GUILD_BAN_ADD: (self: UsingClient, data: GatewayGuildBanAddDispatchData) => {
|
|
419
|
-
user: User;
|
|
419
|
+
user: import("../..").User;
|
|
420
420
|
guildId: string;
|
|
421
421
|
};
|
|
422
422
|
export declare const GUILD_BAN_REMOVE: (self: UsingClient, data: GatewayGuildBanRemoveDispatchData) => {
|
|
423
|
-
user: User;
|
|
423
|
+
user: import("../..").User;
|
|
424
424
|
guildId: string;
|
|
425
425
|
};
|
|
426
|
-
export declare const GUILD_CREATE: (self: UsingClient, data: GatewayGuildCreateDispatchData) => Guild<"create">;
|
|
427
|
-
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">>;
|
|
428
428
|
export declare const GUILD_EMOJIS_UPDATE: (self: UsingClient, data: GatewayGuildEmojisUpdateDispatchData) => {
|
|
429
|
-
emojis: GuildEmoji[];
|
|
429
|
+
emojis: import("../..").GuildEmoji[];
|
|
430
430
|
guildId: string;
|
|
431
431
|
};
|
|
432
432
|
export declare const GUILD_INTEGRATIONS_UPDATE: (_self: UsingClient, data: GatewayGuildIntegrationsUpdateDispatchData) => {
|
|
433
433
|
guildId: string;
|
|
434
434
|
};
|
|
435
|
-
export declare const GUILD_MEMBER_ADD: (self: UsingClient, data:
|
|
435
|
+
export declare const GUILD_MEMBER_ADD: (self: UsingClient, data: GatewayGuildMemberAddDispatchData) => import("../..").GuildMember;
|
|
436
436
|
export declare const GUILD_MEMBER_REMOVE: (self: UsingClient, data: GatewayGuildMemberRemoveDispatchData) => {
|
|
437
|
-
user: User;
|
|
437
|
+
user: import("../..").User;
|
|
438
438
|
guildId: string;
|
|
439
439
|
};
|
|
440
440
|
export declare const GUILD_MEMBERS_CHUNK: (self: UsingClient, data: GatewayGuildMembersChunkDispatchData) => {
|
|
441
|
-
members: GuildMember[];
|
|
441
|
+
members: import("../..").GuildMember[];
|
|
442
442
|
guildId: string;
|
|
443
443
|
chunkIndex: number;
|
|
444
444
|
chunkCount: number;
|
|
@@ -458,20 +458,20 @@ export declare const GUILD_MEMBERS_CHUNK: (self: UsingClient, data: GatewayGuild
|
|
|
458
458
|
locale?: string | undefined;
|
|
459
459
|
verified?: boolean | undefined;
|
|
460
460
|
email?: string | null | undefined;
|
|
461
|
-
flags?: import("
|
|
462
|
-
premiumType?: import("
|
|
463
|
-
publicFlags?: import("
|
|
461
|
+
flags?: import("../../types").UserFlags | undefined;
|
|
462
|
+
premiumType?: import("../../types").UserPremiumType | undefined;
|
|
463
|
+
publicFlags?: import("../../types").UserFlags | undefined;
|
|
464
464
|
avatarDecoration?: string | null | undefined;
|
|
465
465
|
avatarDecorationData?: {
|
|
466
466
|
asset: string;
|
|
467
467
|
skuId: string;
|
|
468
468
|
} | null | undefined;
|
|
469
469
|
};
|
|
470
|
-
status?: import("
|
|
470
|
+
status?: import("../../types").PresenceUpdateReceiveStatus | undefined;
|
|
471
471
|
activities?: {
|
|
472
472
|
id: string;
|
|
473
473
|
name: string;
|
|
474
|
-
type: import("
|
|
474
|
+
type: import("../../types").ActivityType;
|
|
475
475
|
url?: string | null | undefined;
|
|
476
476
|
createdAt: number;
|
|
477
477
|
timestamps?: {
|
|
@@ -505,21 +505,21 @@ export declare const GUILD_MEMBERS_CHUNK: (self: UsingClient, data: GatewayGuild
|
|
|
505
505
|
spectate?: string | undefined;
|
|
506
506
|
} | undefined;
|
|
507
507
|
instance?: boolean | undefined;
|
|
508
|
-
flags?: import("
|
|
508
|
+
flags?: import("../../types").ActivityFlags | undefined;
|
|
509
509
|
buttons?: string[] | {
|
|
510
510
|
label: string;
|
|
511
511
|
url: string;
|
|
512
512
|
}[] | undefined;
|
|
513
513
|
}[] | undefined;
|
|
514
514
|
clientStatus?: {
|
|
515
|
-
desktop?: import("
|
|
516
|
-
mobile?: import("
|
|
517
|
-
web?: import("
|
|
515
|
+
desktop?: import("../../types").PresenceUpdateReceiveStatus | undefined;
|
|
516
|
+
mobile?: import("../../types").PresenceUpdateReceiveStatus | undefined;
|
|
517
|
+
web?: import("../../types").PresenceUpdateReceiveStatus | undefined;
|
|
518
518
|
} | undefined;
|
|
519
519
|
}[] | undefined;
|
|
520
520
|
nonce?: string | undefined;
|
|
521
521
|
};
|
|
522
|
-
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]>;
|
|
523
523
|
export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: UsingClient, data: GatewayGuildScheduledEventCreateDispatchData) => {
|
|
524
524
|
channelId: string;
|
|
525
525
|
entityMetadata: undefined;
|
|
@@ -530,9 +530,9 @@ export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: UsingClient, data: Ga
|
|
|
530
530
|
description?: string | null | undefined;
|
|
531
531
|
scheduledStartTime: string;
|
|
532
532
|
scheduledEndTime: string | null;
|
|
533
|
-
privacyLevel: import("
|
|
534
|
-
status: import("
|
|
535
|
-
entityType: import("
|
|
533
|
+
privacyLevel: import("../../types").GuildScheduledEventPrivacyLevel;
|
|
534
|
+
status: import("../../types").GuildScheduledEventStatus;
|
|
535
|
+
entityType: import("../../types").GuildScheduledEventEntityType.StageInstance;
|
|
536
536
|
entityId: string | null;
|
|
537
537
|
creator?: {
|
|
538
538
|
id: string;
|
|
@@ -548,11 +548,11 @@ export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: UsingClient, data: Ga
|
|
|
548
548
|
locale?: string | undefined;
|
|
549
549
|
verified?: boolean | undefined;
|
|
550
550
|
email?: string | null | undefined;
|
|
551
|
-
flags?: import("
|
|
552
|
-
premiumType?: import("
|
|
553
|
-
publicFlags?: import("
|
|
551
|
+
flags?: import("../../types").UserFlags | undefined;
|
|
552
|
+
premiumType?: import("../../types").UserPremiumType | undefined;
|
|
553
|
+
publicFlags?: import("../../types").UserFlags | undefined;
|
|
554
554
|
avatarDecoration?: string | null | undefined;
|
|
555
|
-
avatarDecorationData?: import("
|
|
555
|
+
avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
|
|
556
556
|
} | undefined;
|
|
557
557
|
userCount?: number | undefined;
|
|
558
558
|
image?: string | null | undefined;
|
|
@@ -566,9 +566,9 @@ export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: UsingClient, data: Ga
|
|
|
566
566
|
description?: string | null | undefined;
|
|
567
567
|
scheduledStartTime: string;
|
|
568
568
|
scheduledEndTime: string | null;
|
|
569
|
-
privacyLevel: import("
|
|
570
|
-
status: import("
|
|
571
|
-
entityType: import("
|
|
569
|
+
privacyLevel: import("../../types").GuildScheduledEventPrivacyLevel;
|
|
570
|
+
status: import("../../types").GuildScheduledEventStatus;
|
|
571
|
+
entityType: import("../../types").GuildScheduledEventEntityType.Voice;
|
|
572
572
|
entityId: string | null;
|
|
573
573
|
creator?: {
|
|
574
574
|
id: string;
|
|
@@ -584,11 +584,11 @@ export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: UsingClient, data: Ga
|
|
|
584
584
|
locale?: string | undefined;
|
|
585
585
|
verified?: boolean | undefined;
|
|
586
586
|
email?: string | null | undefined;
|
|
587
|
-
flags?: import("
|
|
588
|
-
premiumType?: import("
|
|
589
|
-
publicFlags?: import("
|
|
587
|
+
flags?: import("../../types").UserFlags | undefined;
|
|
588
|
+
premiumType?: import("../../types").UserPremiumType | undefined;
|
|
589
|
+
publicFlags?: import("../../types").UserFlags | undefined;
|
|
590
590
|
avatarDecoration?: string | null | undefined;
|
|
591
|
-
avatarDecorationData?: import("
|
|
591
|
+
avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
|
|
592
592
|
} | undefined;
|
|
593
593
|
userCount?: number | undefined;
|
|
594
594
|
image?: string | null | undefined;
|
|
@@ -604,9 +604,9 @@ export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: UsingClient, data: Ga
|
|
|
604
604
|
description?: string | null | undefined;
|
|
605
605
|
scheduledStartTime: string;
|
|
606
606
|
scheduledEndTime: string | null;
|
|
607
|
-
privacyLevel: import("
|
|
608
|
-
status: import("
|
|
609
|
-
entityType: import("
|
|
607
|
+
privacyLevel: import("../../types").GuildScheduledEventPrivacyLevel;
|
|
608
|
+
status: import("../../types").GuildScheduledEventStatus;
|
|
609
|
+
entityType: import("../../types").GuildScheduledEventEntityType.External;
|
|
610
610
|
entityId: string | null;
|
|
611
611
|
creator?: {
|
|
612
612
|
id: string;
|
|
@@ -622,11 +622,11 @@ export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: UsingClient, data: Ga
|
|
|
622
622
|
locale?: string | undefined;
|
|
623
623
|
verified?: boolean | undefined;
|
|
624
624
|
email?: string | null | undefined;
|
|
625
|
-
flags?: import("
|
|
626
|
-
premiumType?: import("
|
|
627
|
-
publicFlags?: import("
|
|
625
|
+
flags?: import("../../types").UserFlags | undefined;
|
|
626
|
+
premiumType?: import("../../types").UserPremiumType | undefined;
|
|
627
|
+
publicFlags?: import("../../types").UserFlags | undefined;
|
|
628
628
|
avatarDecoration?: string | null | undefined;
|
|
629
|
-
avatarDecorationData?: import("
|
|
629
|
+
avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
|
|
630
630
|
} | undefined;
|
|
631
631
|
userCount?: number | undefined;
|
|
632
632
|
image?: string | null | undefined;
|
|
@@ -641,9 +641,9 @@ export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: UsingClient, data: Ga
|
|
|
641
641
|
description?: string | null | undefined;
|
|
642
642
|
scheduledStartTime: string;
|
|
643
643
|
scheduledEndTime: string | null;
|
|
644
|
-
privacyLevel: import("
|
|
645
|
-
status: import("
|
|
646
|
-
entityType: import("
|
|
644
|
+
privacyLevel: import("../../types").GuildScheduledEventPrivacyLevel;
|
|
645
|
+
status: import("../../types").GuildScheduledEventStatus;
|
|
646
|
+
entityType: import("../../types").GuildScheduledEventEntityType.StageInstance;
|
|
647
647
|
entityId: string | null;
|
|
648
648
|
creator?: {
|
|
649
649
|
id: string;
|
|
@@ -659,11 +659,11 @@ export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: UsingClient, data: Ga
|
|
|
659
659
|
locale?: string | undefined;
|
|
660
660
|
verified?: boolean | undefined;
|
|
661
661
|
email?: string | null | undefined;
|
|
662
|
-
flags?: import("
|
|
663
|
-
premiumType?: import("
|
|
664
|
-
publicFlags?: import("
|
|
662
|
+
flags?: import("../../types").UserFlags | undefined;
|
|
663
|
+
premiumType?: import("../../types").UserPremiumType | undefined;
|
|
664
|
+
publicFlags?: import("../../types").UserFlags | undefined;
|
|
665
665
|
avatarDecoration?: string | null | undefined;
|
|
666
|
-
avatarDecorationData?: import("
|
|
666
|
+
avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
|
|
667
667
|
} | undefined;
|
|
668
668
|
userCount?: number | undefined;
|
|
669
669
|
image?: string | null | undefined;
|
|
@@ -677,9 +677,9 @@ export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: UsingClient, data: Ga
|
|
|
677
677
|
description?: string | null | undefined;
|
|
678
678
|
scheduledStartTime: string;
|
|
679
679
|
scheduledEndTime: string | null;
|
|
680
|
-
privacyLevel: import("
|
|
681
|
-
status: import("
|
|
682
|
-
entityType: import("
|
|
680
|
+
privacyLevel: import("../../types").GuildScheduledEventPrivacyLevel;
|
|
681
|
+
status: import("../../types").GuildScheduledEventStatus;
|
|
682
|
+
entityType: import("../../types").GuildScheduledEventEntityType.Voice;
|
|
683
683
|
entityId: string | null;
|
|
684
684
|
creator?: {
|
|
685
685
|
id: string;
|
|
@@ -695,11 +695,11 @@ export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: UsingClient, data: Ga
|
|
|
695
695
|
locale?: string | undefined;
|
|
696
696
|
verified?: boolean | undefined;
|
|
697
697
|
email?: string | null | undefined;
|
|
698
|
-
flags?: import("
|
|
699
|
-
premiumType?: import("
|
|
700
|
-
publicFlags?: import("
|
|
698
|
+
flags?: import("../../types").UserFlags | undefined;
|
|
699
|
+
premiumType?: import("../../types").UserPremiumType | undefined;
|
|
700
|
+
publicFlags?: import("../../types").UserFlags | undefined;
|
|
701
701
|
avatarDecoration?: string | null | undefined;
|
|
702
|
-
avatarDecorationData?: import("
|
|
702
|
+
avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
|
|
703
703
|
} | undefined;
|
|
704
704
|
userCount?: number | undefined;
|
|
705
705
|
image?: string | null | undefined;
|
|
@@ -715,9 +715,9 @@ export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: UsingClient, data: Ga
|
|
|
715
715
|
description?: string | null | undefined;
|
|
716
716
|
scheduledStartTime: string;
|
|
717
717
|
scheduledEndTime: string | null;
|
|
718
|
-
privacyLevel: import("
|
|
719
|
-
status: import("
|
|
720
|
-
entityType: import("
|
|
718
|
+
privacyLevel: import("../../types").GuildScheduledEventPrivacyLevel;
|
|
719
|
+
status: import("../../types").GuildScheduledEventStatus;
|
|
720
|
+
entityType: import("../../types").GuildScheduledEventEntityType.External;
|
|
721
721
|
entityId: string | null;
|
|
722
722
|
creator?: {
|
|
723
723
|
id: string;
|
|
@@ -733,11 +733,11 @@ export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: UsingClient, data: Ga
|
|
|
733
733
|
locale?: string | undefined;
|
|
734
734
|
verified?: boolean | undefined;
|
|
735
735
|
email?: string | null | undefined;
|
|
736
|
-
flags?: import("
|
|
737
|
-
premiumType?: import("
|
|
738
|
-
publicFlags?: import("
|
|
736
|
+
flags?: import("../../types").UserFlags | undefined;
|
|
737
|
+
premiumType?: import("../../types").UserPremiumType | undefined;
|
|
738
|
+
publicFlags?: import("../../types").UserFlags | undefined;
|
|
739
739
|
avatarDecoration?: string | null | undefined;
|
|
740
|
-
avatarDecorationData?: import("
|
|
740
|
+
avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
|
|
741
741
|
} | undefined;
|
|
742
742
|
userCount?: number | undefined;
|
|
743
743
|
image?: string | null | undefined;
|
|
@@ -752,9 +752,9 @@ export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: UsingClient, data: Ga
|
|
|
752
752
|
description?: string | null | undefined;
|
|
753
753
|
scheduledStartTime: string;
|
|
754
754
|
scheduledEndTime: string | null;
|
|
755
|
-
privacyLevel: import("
|
|
756
|
-
status: import("
|
|
757
|
-
entityType: import("
|
|
755
|
+
privacyLevel: import("../../types").GuildScheduledEventPrivacyLevel;
|
|
756
|
+
status: import("../../types").GuildScheduledEventStatus;
|
|
757
|
+
entityType: import("../../types").GuildScheduledEventEntityType.StageInstance;
|
|
758
758
|
entityId: string | null;
|
|
759
759
|
creator?: {
|
|
760
760
|
id: string;
|
|
@@ -770,11 +770,11 @@ export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: UsingClient, data: Ga
|
|
|
770
770
|
locale?: string | undefined;
|
|
771
771
|
verified?: boolean | undefined;
|
|
772
772
|
email?: string | null | undefined;
|
|
773
|
-
flags?: import("
|
|
774
|
-
premiumType?: import("
|
|
775
|
-
publicFlags?: import("
|
|
773
|
+
flags?: import("../../types").UserFlags | undefined;
|
|
774
|
+
premiumType?: import("../../types").UserPremiumType | undefined;
|
|
775
|
+
publicFlags?: import("../../types").UserFlags | undefined;
|
|
776
776
|
avatarDecoration?: string | null | undefined;
|
|
777
|
-
avatarDecorationData?: import("
|
|
777
|
+
avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
|
|
778
778
|
} | undefined;
|
|
779
779
|
userCount?: number | undefined;
|
|
780
780
|
image?: string | null | undefined;
|
|
@@ -788,9 +788,9 @@ export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: UsingClient, data: Ga
|
|
|
788
788
|
description?: string | null | undefined;
|
|
789
789
|
scheduledStartTime: string;
|
|
790
790
|
scheduledEndTime: string | null;
|
|
791
|
-
privacyLevel: import("
|
|
792
|
-
status: import("
|
|
793
|
-
entityType: import("
|
|
791
|
+
privacyLevel: import("../../types").GuildScheduledEventPrivacyLevel;
|
|
792
|
+
status: import("../../types").GuildScheduledEventStatus;
|
|
793
|
+
entityType: import("../../types").GuildScheduledEventEntityType.Voice;
|
|
794
794
|
entityId: string | null;
|
|
795
795
|
creator?: {
|
|
796
796
|
id: string;
|
|
@@ -806,11 +806,11 @@ export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: UsingClient, data: Ga
|
|
|
806
806
|
locale?: string | undefined;
|
|
807
807
|
verified?: boolean | undefined;
|
|
808
808
|
email?: string | null | undefined;
|
|
809
|
-
flags?: import("
|
|
810
|
-
premiumType?: import("
|
|
811
|
-
publicFlags?: import("
|
|
809
|
+
flags?: import("../../types").UserFlags | undefined;
|
|
810
|
+
premiumType?: import("../../types").UserPremiumType | undefined;
|
|
811
|
+
publicFlags?: import("../../types").UserFlags | undefined;
|
|
812
812
|
avatarDecoration?: string | null | undefined;
|
|
813
|
-
avatarDecorationData?: import("
|
|
813
|
+
avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
|
|
814
814
|
} | undefined;
|
|
815
815
|
userCount?: number | undefined;
|
|
816
816
|
image?: string | null | undefined;
|
|
@@ -826,9 +826,9 @@ export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: UsingClient, data: Ga
|
|
|
826
826
|
description?: string | null | undefined;
|
|
827
827
|
scheduledStartTime: string;
|
|
828
828
|
scheduledEndTime: string | null;
|
|
829
|
-
privacyLevel: import("
|
|
830
|
-
status: import("
|
|
831
|
-
entityType: import("
|
|
829
|
+
privacyLevel: import("../../types").GuildScheduledEventPrivacyLevel;
|
|
830
|
+
status: import("../../types").GuildScheduledEventStatus;
|
|
831
|
+
entityType: import("../../types").GuildScheduledEventEntityType.External;
|
|
832
832
|
entityId: string | null;
|
|
833
833
|
creator?: {
|
|
834
834
|
id: string;
|
|
@@ -844,11 +844,11 @@ export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: UsingClient, data: Ga
|
|
|
844
844
|
locale?: string | undefined;
|
|
845
845
|
verified?: boolean | undefined;
|
|
846
846
|
email?: string | null | undefined;
|
|
847
|
-
flags?: import("
|
|
848
|
-
premiumType?: import("
|
|
849
|
-
publicFlags?: import("
|
|
847
|
+
flags?: import("../../types").UserFlags | undefined;
|
|
848
|
+
premiumType?: import("../../types").UserPremiumType | undefined;
|
|
849
|
+
publicFlags?: import("../../types").UserFlags | undefined;
|
|
850
850
|
avatarDecoration?: string | null | undefined;
|
|
851
|
-
avatarDecorationData?: import("
|
|
851
|
+
avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
|
|
852
852
|
} | undefined;
|
|
853
853
|
userCount?: number | undefined;
|
|
854
854
|
image?: string | null | undefined;
|
|
@@ -863,14 +863,14 @@ export declare const GUILD_SCHEDULED_EVENT_USER_REMOVE: (_self: UsingClient, dat
|
|
|
863
863
|
userId: string;
|
|
864
864
|
guildId: string;
|
|
865
865
|
};
|
|
866
|
-
export declare const GUILD_ROLE_CREATE: (self: UsingClient, data: GatewayGuildRoleCreateDispatchData) => GuildRole;
|
|
867
|
-
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 | {
|
|
868
868
|
guildId: string;
|
|
869
869
|
roleId: string;
|
|
870
870
|
}>;
|
|
871
|
-
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]>;
|
|
872
872
|
export declare const GUILD_STICKERS_UPDATE: (self: UsingClient, data: GatewayGuildStickersUpdateDispatchData) => {
|
|
873
|
-
stickers: Sticker[];
|
|
873
|
+
stickers: import("../..").Sticker[];
|
|
874
874
|
guildId: string;
|
|
875
875
|
};
|
|
876
|
-
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">]>;
|