elynn-baileys 1.0.1
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 +22 -0
- package/README.md +2372 -0
- package/WAProto/index.d.ts +15871 -0
- package/WAProto/index.js +115447 -0
- package/elynn/config.js +12 -0
- package/elynn/plugins/README.md +24 -0
- package/elynn/plugins/ai/deepseekr1.js +27 -0
- package/elynn/plugins/ai/gita.js +16 -0
- package/elynn/plugins/ai/glm47flash.js +27 -0
- package/elynn/plugins/ai/gptoss120b.js +27 -0
- package/elynn/plugins/ai/qwq32b.js +27 -0
- package/elynn/plugins/berita/antara.js +18 -0
- package/elynn/plugins/berita/cnbcindonesia.js +18 -0
- package/elynn/plugins/berita/cnn.js +18 -0
- package/elynn/plugins/berita/kompas.js +18 -0
- package/elynn/plugins/berita/liputan6.js +18 -0
- package/elynn/plugins/berita/merdeka.js +18 -0
- package/elynn/plugins/berita/sindonews.js +18 -0
- package/elynn/plugins/berita/tribunnews.js +18 -0
- package/elynn/plugins/downloader/douyin.js +19 -0
- package/elynn/plugins/downloader/facebook.js +19 -0
- package/elynn/plugins/downloader/github.js +25 -0
- package/elynn/plugins/downloader/lahelu.js +19 -0
- package/elynn/plugins/downloader/snackvideo.js +19 -0
- package/elynn/plugins/downloader/soundcloud.js +19 -0
- package/elynn/plugins/downloader/tiktok.js +19 -0
- package/elynn/plugins/downloader/tiktokhd.js +19 -0
- package/elynn/plugins/downloader/twitter.js +19 -0
- package/elynn/plugins/downloader/ummy.js +26 -0
- package/elynn/plugins/index.cjs +26 -0
- package/elynn/plugins/index.js +232 -0
- package/elynn/plugins/info/bmkg.js +25 -0
- package/elynn/plugins/info/cuaca.js +23 -0
- package/elynn/plugins/info/jadwaltv.js +21 -0
- package/elynn/plugins/maker/brat.js +45 -0
- package/elynn/plugins/maker/bratvid.js +52 -0
- package/elynn/plugins/search/8font.js +18 -0
- package/elynn/plugins/search/applemusic.js +18 -0
- package/elynn/plugins/search/bimg.js +19 -0
- package/elynn/plugins/search/brave.js +24 -0
- package/elynn/plugins/search/duckduckgo.js +18 -0
- package/elynn/plugins/search/lahelu.js +18 -0
- package/elynn/plugins/search/mangatoon.js +18 -0
- package/elynn/plugins/search/mcpedl.js +18 -0
- package/elynn/plugins/search/myinstants.js +18 -0
- package/elynn/plugins/search/otakotaku.js +18 -0
- package/elynn/plugins/search/pinterest.js +19 -0
- package/elynn/plugins/search/resep.js +18 -0
- package/elynn/plugins/search/seegore.js +19 -0
- package/elynn/plugins/search/soundcloud.js +18 -0
- package/elynn/plugins/search/youtube.js +18 -0
- package/elynn/plugins/stalk/github.js +28 -0
- package/elynn/plugins/stalk/pinterest.js +27 -0
- package/elynn/plugins/stalk/threads.js +24 -0
- package/elynn/plugins/stalk/tiktok.js +27 -0
- package/elynn/plugins/stalk/twitter.js +27 -0
- package/elynn/plugins/stalk/youtube.js +27 -0
- package/engine-requirements.js +45 -0
- package/lib/Defaults/index.d.ts +145 -0
- package/lib/Defaults/index.d.ts.map +1 -0
- package/lib/Defaults/index.js +152 -0
- package/lib/Defaults/index.js.map +1 -0
- package/lib/Discord/Client.cjs +274 -0
- package/lib/Discord/Client.d.ts +98 -0
- package/lib/Discord/Client.js +274 -0
- package/lib/Discord/Constants.cjs +1842 -0
- package/lib/Discord/Constants.d.ts +1514 -0
- package/lib/Discord/Constants.js +1842 -0
- package/lib/Discord/connect-dc.js +5 -0
- package/lib/Discord/esm-bridge.mjs +128 -0
- package/lib/Discord/gateway/Dispatcher.cjs +86 -0
- package/lib/Discord/gateway/Dispatcher.d.ts +17 -0
- package/lib/Discord/gateway/Dispatcher.js +86 -0
- package/lib/Discord/gateway/Shard.cjs +723 -0
- package/lib/Discord/gateway/Shard.d.ts +87 -0
- package/lib/Discord/gateway/Shard.js +723 -0
- package/lib/Discord/gateway/ShardManager.cjs +350 -0
- package/lib/Discord/gateway/ShardManager.d.ts +31 -0
- package/lib/Discord/gateway/ShardManager.js +350 -0
- package/lib/Discord/gateway/compression/base.cjs +14 -0
- package/lib/Discord/gateway/compression/base.d.ts +6 -0
- package/lib/Discord/gateway/compression/base.js +14 -0
- package/lib/Discord/gateway/compression/config.cjs +47 -0
- package/lib/Discord/gateway/compression/config.d.ts +17 -0
- package/lib/Discord/gateway/compression/config.js +47 -0
- package/lib/Discord/gateway/compression/pako.cjs +45 -0
- package/lib/Discord/gateway/compression/pako.d.ts +16 -0
- package/lib/Discord/gateway/compression/pako.js +45 -0
- package/lib/Discord/gateway/compression/zlib-native.cjs +50 -0
- package/lib/Discord/gateway/compression/zlib-native.d.ts +10 -0
- package/lib/Discord/gateway/compression/zlib-native.js +50 -0
- package/lib/Discord/gateway/compression/zlib-sync.cjs +32 -0
- package/lib/Discord/gateway/compression/zlib-sync.d.ts +8 -0
- package/lib/Discord/gateway/compression/zlib-sync.js +32 -0
- package/lib/Discord/gateway/compression/zstd-napi.cjs +74 -0
- package/lib/Discord/gateway/compression/zstd-napi.d.ts +9 -0
- package/lib/Discord/gateway/compression/zstd-napi.js +74 -0
- package/lib/Discord/gateway/compression/zstd-native.cjs +48 -0
- package/lib/Discord/gateway/compression/zstd-native.d.ts +9 -0
- package/lib/Discord/gateway/compression/zstd-native.js +48 -0
- package/lib/Discord/gateway/events.cjs +956 -0
- package/lib/Discord/gateway/events.d.ts +75 -0
- package/lib/Discord/gateway/events.js +956 -0
- package/lib/Discord/index.cjs +228 -0
- package/lib/Discord/index.d.ts +98 -0
- package/lib/Discord/index.js +228 -0
- package/lib/Discord/rest/Bucket.cjs +77 -0
- package/lib/Discord/rest/Bucket.d.ts +32 -0
- package/lib/Discord/rest/Bucket.js +77 -0
- package/lib/Discord/rest/DiscordHTTPError.cjs +66 -0
- package/lib/Discord/rest/DiscordHTTPError.d.ts +15 -0
- package/lib/Discord/rest/DiscordHTTPError.js +66 -0
- package/lib/Discord/rest/DiscordRESTError.cjs +88 -0
- package/lib/Discord/rest/DiscordRESTError.d.ts +18 -0
- package/lib/Discord/rest/DiscordRESTError.js +88 -0
- package/lib/Discord/rest/OAuthHelper.cjs +220 -0
- package/lib/Discord/rest/OAuthHelper.d.ts +61 -0
- package/lib/Discord/rest/OAuthHelper.js +220 -0
- package/lib/Discord/rest/RESTManager.cjs +119 -0
- package/lib/Discord/rest/RESTManager.d.ts +42 -0
- package/lib/Discord/rest/RESTManager.js +119 -0
- package/lib/Discord/rest/RequestHandler.cjs +323 -0
- package/lib/Discord/rest/RequestHandler.d.ts +27 -0
- package/lib/Discord/rest/RequestHandler.js +323 -0
- package/lib/Discord/rest/SequentialBucket.cjs +74 -0
- package/lib/Discord/rest/SequentialBucket.d.ts +24 -0
- package/lib/Discord/rest/SequentialBucket.js +74 -0
- package/lib/Discord/routes/Applications.cjs +618 -0
- package/lib/Discord/routes/Applications.d.ts +230 -0
- package/lib/Discord/routes/Applications.js +618 -0
- package/lib/Discord/routes/Channels.cjs +1191 -0
- package/lib/Discord/routes/Channels.d.ts +428 -0
- package/lib/Discord/routes/Channels.js +1192 -0
- package/lib/Discord/routes/Guilds.cjs +1785 -0
- package/lib/Discord/routes/Guilds.d.ts +644 -0
- package/lib/Discord/routes/Guilds.js +1785 -0
- package/lib/Discord/routes/Interactions.cjs +205 -0
- package/lib/Discord/routes/Interactions.d.ts +74 -0
- package/lib/Discord/routes/Interactions.js +205 -0
- package/lib/Discord/routes/Lobbies.cjs +190 -0
- package/lib/Discord/routes/Lobbies.d.ts +70 -0
- package/lib/Discord/routes/Lobbies.js +190 -0
- package/lib/Discord/routes/Miscellaneous.cjs +113 -0
- package/lib/Discord/routes/Miscellaneous.d.ts +36 -0
- package/lib/Discord/routes/Miscellaneous.js +113 -0
- package/lib/Discord/routes/OAuth.cjs +343 -0
- package/lib/Discord/routes/OAuth.d.ts +107 -0
- package/lib/Discord/routes/OAuth.js +343 -0
- package/lib/Discord/routes/Users.cjs +100 -0
- package/lib/Discord/routes/Users.d.ts +32 -0
- package/lib/Discord/routes/Users.js +100 -0
- package/lib/Discord/routes/Webhooks.cjs +301 -0
- package/lib/Discord/routes/Webhooks.d.ts +126 -0
- package/lib/Discord/routes/Webhooks.js +301 -0
- package/lib/Discord/structures/AnnouncementChannel.cjs +46 -0
- package/lib/Discord/structures/AnnouncementChannel.d.ts +34 -0
- package/lib/Discord/structures/AnnouncementChannel.js +46 -0
- package/lib/Discord/structures/AnnouncementThreadChannel.cjs +28 -0
- package/lib/Discord/structures/AnnouncementThreadChannel.d.ts +17 -0
- package/lib/Discord/structures/AnnouncementThreadChannel.js +28 -0
- package/lib/Discord/structures/Application.cjs +477 -0
- package/lib/Discord/structures/Application.d.ts +166 -0
- package/lib/Discord/structures/Application.js +477 -0
- package/lib/Discord/structures/ApplicationCommand.cjs +146 -0
- package/lib/Discord/structures/ApplicationCommand.d.ts +75 -0
- package/lib/Discord/structures/ApplicationCommand.js +146 -0
- package/lib/Discord/structures/Attachment.cjs +78 -0
- package/lib/Discord/structures/Attachment.d.ts +43 -0
- package/lib/Discord/structures/Attachment.js +78 -0
- package/lib/Discord/structures/AuditLogEntry.cjs +54 -0
- package/lib/Discord/structures/AuditLogEntry.d.ts +25 -0
- package/lib/Discord/structures/AuditLogEntry.js +54 -0
- package/lib/Discord/structures/AutoModerationRule.cjs +140 -0
- package/lib/Discord/structures/AutoModerationRule.d.ts +48 -0
- package/lib/Discord/structures/AutoModerationRule.js +140 -0
- package/lib/Discord/structures/AutocompleteInteraction.cjs +120 -0
- package/lib/Discord/structures/AutocompleteInteraction.d.ts +61 -0
- package/lib/Discord/structures/AutocompleteInteraction.js +120 -0
- package/lib/Discord/structures/Base.cjs +58 -0
- package/lib/Discord/structures/Base.d.ts +19 -0
- package/lib/Discord/structures/Base.js +58 -0
- package/lib/Discord/structures/BaseEntitlement.cjs +49 -0
- package/lib/Discord/structures/BaseEntitlement.d.ts +20 -0
- package/lib/Discord/structures/BaseEntitlement.js +49 -0
- package/lib/Discord/structures/CategoryChannel.cjs +106 -0
- package/lib/Discord/structures/CategoryChannel.d.ts +40 -0
- package/lib/Discord/structures/CategoryChannel.js +106 -0
- package/lib/Discord/structures/Channel.cjs +92 -0
- package/lib/Discord/structures/Channel.d.ts +19 -0
- package/lib/Discord/structures/Channel.js +92 -0
- package/lib/Discord/structures/ClientApplication.cjs +273 -0
- package/lib/Discord/structures/ClientApplication.d.ts +189 -0
- package/lib/Discord/structures/ClientApplication.js +273 -0
- package/lib/Discord/structures/CommandInteraction.cjs +324 -0
- package/lib/Discord/structures/CommandInteraction.d.ts +166 -0
- package/lib/Discord/structures/CommandInteraction.js +324 -0
- package/lib/Discord/structures/ComponentInteraction.cjs +338 -0
- package/lib/Discord/structures/ComponentInteraction.d.ts +180 -0
- package/lib/Discord/structures/ComponentInteraction.js +338 -0
- package/lib/Discord/structures/Entitlement.cjs +27 -0
- package/lib/Discord/structures/Entitlement.d.ts +11 -0
- package/lib/Discord/structures/Entitlement.js +27 -0
- package/lib/Discord/structures/ExtendedUser.cjs +58 -0
- package/lib/Discord/structures/ExtendedUser.d.ts +25 -0
- package/lib/Discord/structures/ExtendedUser.js +58 -0
- package/lib/Discord/structures/ForumChannel.cjs +20 -0
- package/lib/Discord/structures/ForumChannel.d.ts +11 -0
- package/lib/Discord/structures/ForumChannel.js +20 -0
- package/lib/Discord/structures/GroupChannel.cjs +172 -0
- package/lib/Discord/structures/GroupChannel.d.ts +60 -0
- package/lib/Discord/structures/GroupChannel.js +172 -0
- package/lib/Discord/structures/Guild.cjs +1415 -0
- package/lib/Discord/structures/Guild.d.ts +687 -0
- package/lib/Discord/structures/Guild.js +1415 -0
- package/lib/Discord/structures/GuildChannel.cjs +90 -0
- package/lib/Discord/structures/GuildChannel.d.ts +36 -0
- package/lib/Discord/structures/GuildChannel.js +90 -0
- package/lib/Discord/structures/GuildPreview.cjs +153 -0
- package/lib/Discord/structures/GuildPreview.d.ts +49 -0
- package/lib/Discord/structures/GuildPreview.js +153 -0
- package/lib/Discord/structures/GuildScheduledEvent.cjs +188 -0
- package/lib/Discord/structures/GuildScheduledEvent.d.ts +59 -0
- package/lib/Discord/structures/GuildScheduledEvent.js +188 -0
- package/lib/Discord/structures/GuildTemplate.cjs +118 -0
- package/lib/Discord/structures/GuildTemplate.d.ts +48 -0
- package/lib/Discord/structures/GuildTemplate.js +118 -0
- package/lib/Discord/structures/Integration.cjs +157 -0
- package/lib/Discord/structures/Integration.d.ts +53 -0
- package/lib/Discord/structures/Integration.js +157 -0
- package/lib/Discord/structures/Interaction.cjs +91 -0
- package/lib/Discord/structures/Interaction.d.ts +39 -0
- package/lib/Discord/structures/Interaction.js +91 -0
- package/lib/Discord/structures/InteractionResolvedChannel.cjs +46 -0
- package/lib/Discord/structures/InteractionResolvedChannel.d.ts +27 -0
- package/lib/Discord/structures/InteractionResolvedChannel.js +46 -0
- package/lib/Discord/structures/Invite.cjs +240 -0
- package/lib/Discord/structures/Invite.d.ts +132 -0
- package/lib/Discord/structures/Invite.js +240 -0
- package/lib/Discord/structures/InviteGuild.cjs +130 -0
- package/lib/Discord/structures/InviteGuild.d.ts +54 -0
- package/lib/Discord/structures/InviteGuild.js +130 -0
- package/lib/Discord/structures/InviteRole.cjs +110 -0
- package/lib/Discord/structures/InviteRole.d.ts +53 -0
- package/lib/Discord/structures/InviteRole.js +110 -0
- package/lib/Discord/structures/Lobby.cjs +88 -0
- package/lib/Discord/structures/Lobby.d.ts +54 -0
- package/lib/Discord/structures/Lobby.js +88 -0
- package/lib/Discord/structures/LobbyMember.cjs +33 -0
- package/lib/Discord/structures/LobbyMember.d.ts +15 -0
- package/lib/Discord/structures/LobbyMember.js +33 -0
- package/lib/Discord/structures/MediaChannel.cjs +20 -0
- package/lib/Discord/structures/MediaChannel.d.ts +11 -0
- package/lib/Discord/structures/MediaChannel.js +20 -0
- package/lib/Discord/structures/Member.cjs +325 -0
- package/lib/Discord/structures/Member.d.ts +140 -0
- package/lib/Discord/structures/Member.js +325 -0
- package/lib/Discord/structures/Message.cjs +627 -0
- package/lib/Discord/structures/Message.d.ts +223 -0
- package/lib/Discord/structures/Message.js +627 -0
- package/lib/Discord/structures/ModalSubmitInteraction.cjs +295 -0
- package/lib/Discord/structures/ModalSubmitInteraction.d.ts +138 -0
- package/lib/Discord/structures/ModalSubmitInteraction.js +295 -0
- package/lib/Discord/structures/OAuthApplication.cjs +244 -0
- package/lib/Discord/structures/OAuthApplication.d.ts +77 -0
- package/lib/Discord/structures/OAuthApplication.js +244 -0
- package/lib/Discord/structures/OAuthGuild.cjs +107 -0
- package/lib/Discord/structures/OAuthGuild.d.ts +43 -0
- package/lib/Discord/structures/OAuthGuild.js +107 -0
- package/lib/Discord/structures/PartialApplication.cjs +101 -0
- package/lib/Discord/structures/PartialApplication.d.ts +29 -0
- package/lib/Discord/structures/PartialApplication.js +101 -0
- package/lib/Discord/structures/Permission.cjs +66 -0
- package/lib/Discord/structures/Permission.d.ts +21 -0
- package/lib/Discord/structures/Permission.js +66 -0
- package/lib/Discord/structures/PermissionOverwrite.cjs +50 -0
- package/lib/Discord/structures/PermissionOverwrite.d.ts +25 -0
- package/lib/Discord/structures/PermissionOverwrite.js +50 -0
- package/lib/Discord/structures/PingInteraction.cjs +27 -0
- package/lib/Discord/structures/PingInteraction.d.ts +15 -0
- package/lib/Discord/structures/PingInteraction.js +27 -0
- package/lib/Discord/structures/Poll.cjs +77 -0
- package/lib/Discord/structures/Poll.d.ts +27 -0
- package/lib/Discord/structures/Poll.js +77 -0
- package/lib/Discord/structures/PrimaryGuild.cjs +92 -0
- package/lib/Discord/structures/PrimaryGuild.d.ts +23 -0
- package/lib/Discord/structures/PrimaryGuild.js +92 -0
- package/lib/Discord/structures/PrivateChannel.cjs +139 -0
- package/lib/Discord/structures/PrivateChannel.d.ts +102 -0
- package/lib/Discord/structures/PrivateChannel.js +139 -0
- package/lib/Discord/structures/PrivateThreadChannel.cjs +28 -0
- package/lib/Discord/structures/PrivateThreadChannel.d.ts +17 -0
- package/lib/Discord/structures/PrivateThreadChannel.js +28 -0
- package/lib/Discord/structures/PublicThreadChannel.cjs +38 -0
- package/lib/Discord/structures/PublicThreadChannel.d.ts +20 -0
- package/lib/Discord/structures/PublicThreadChannel.js +38 -0
- package/lib/Discord/structures/Role.cjs +156 -0
- package/lib/Discord/structures/Role.d.ts +56 -0
- package/lib/Discord/structures/Role.js +156 -0
- package/lib/Discord/structures/SKU.cjs +70 -0
- package/lib/Discord/structures/SKU.d.ts +33 -0
- package/lib/Discord/structures/SKU.js +70 -0
- package/lib/Discord/structures/Soundboard.cjs +74 -0
- package/lib/Discord/structures/Soundboard.d.ts +42 -0
- package/lib/Discord/structures/Soundboard.js +74 -0
- package/lib/Discord/structures/StageChannel.cjs +45 -0
- package/lib/Discord/structures/StageChannel.d.ts +31 -0
- package/lib/Discord/structures/StageChannel.js +45 -0
- package/lib/Discord/structures/StageInstance.cjs +95 -0
- package/lib/Discord/structures/StageInstance.d.ts +35 -0
- package/lib/Discord/structures/StageInstance.js +95 -0
- package/lib/Discord/structures/Subscription.cjs +39 -0
- package/lib/Discord/structures/Subscription.d.ts +25 -0
- package/lib/Discord/structures/Subscription.js +39 -0
- package/lib/Discord/structures/Team.cjs +86 -0
- package/lib/Discord/structures/Team.d.ts +28 -0
- package/lib/Discord/structures/Team.js +86 -0
- package/lib/Discord/structures/TestEntitlement.cjs +22 -0
- package/lib/Discord/structures/TestEntitlement.d.ts +10 -0
- package/lib/Discord/structures/TestEntitlement.js +22 -0
- package/lib/Discord/structures/TextChannel.cjs +48 -0
- package/lib/Discord/structures/TextChannel.d.ts +34 -0
- package/lib/Discord/structures/TextChannel.js +48 -0
- package/lib/Discord/structures/TextableChannel.cjs +281 -0
- package/lib/Discord/structures/TextableChannel.d.ts +167 -0
- package/lib/Discord/structures/TextableChannel.js +281 -0
- package/lib/Discord/structures/TextableVoiceChannel.cjs +79 -0
- package/lib/Discord/structures/TextableVoiceChannel.d.ts +34 -0
- package/lib/Discord/structures/TextableVoiceChannel.js +79 -0
- package/lib/Discord/structures/ThreadChannel.cjs +300 -0
- package/lib/Discord/structures/ThreadChannel.d.ts +170 -0
- package/lib/Discord/structures/ThreadChannel.js +300 -0
- package/lib/Discord/structures/ThreadOnlyChannel.cjs +231 -0
- package/lib/Discord/structures/ThreadOnlyChannel.d.ts +95 -0
- package/lib/Discord/structures/ThreadOnlyChannel.js +231 -0
- package/lib/Discord/structures/ThreadableChannel.cjs +59 -0
- package/lib/Discord/structures/ThreadableChannel.d.ts +35 -0
- package/lib/Discord/structures/ThreadableChannel.js +59 -0
- package/lib/Discord/structures/UnavailableGuild.cjs +22 -0
- package/lib/Discord/structures/UnavailableGuild.d.ts +10 -0
- package/lib/Discord/structures/UnavailableGuild.js +22 -0
- package/lib/Discord/structures/User.cjs +240 -0
- package/lib/Discord/structures/User.d.ts +90 -0
- package/lib/Discord/structures/User.js +240 -0
- package/lib/Discord/structures/VoiceChannel.cjs +36 -0
- package/lib/Discord/structures/VoiceChannel.d.ts +19 -0
- package/lib/Discord/structures/VoiceChannel.js +36 -0
- package/lib/Discord/structures/VoiceState.cjs +141 -0
- package/lib/Discord/structures/VoiceState.d.ts +49 -0
- package/lib/Discord/structures/VoiceState.js +141 -0
- package/lib/Discord/structures/Webhook.cjs +240 -0
- package/lib/Discord/structures/Webhook.d.ts +126 -0
- package/lib/Discord/structures/Webhook.js +240 -0
- package/lib/Discord/types/applications.d.ts +695 -0
- package/lib/Discord/types/audit-log.d.ts +116 -0
- package/lib/Discord/types/auto-moderation.d.ts +99 -0
- package/lib/Discord/types/channels.d.ts +1570 -0
- package/lib/Discord/types/client.d.ts +250 -0
- package/lib/Discord/types/events.d.ts +224 -0
- package/lib/Discord/types/gateway-raw.d.ts +585 -0
- package/lib/Discord/types/gateway.d.ts +401 -0
- package/lib/Discord/types/guild-template.d.ts +25 -0
- package/lib/Discord/types/guilds.d.ts +987 -0
- package/lib/Discord/types/index.d.ts +24 -0
- package/lib/Discord/types/interactions.d.ts +524 -0
- package/lib/Discord/types/invites.d.ts +117 -0
- package/lib/Discord/types/json.d.ts +833 -0
- package/lib/Discord/types/lobbies.d.ts +31 -0
- package/lib/Discord/types/misc.d.ts +25 -0
- package/lib/Discord/types/namespaced.d.ts +22 -0
- package/lib/Discord/types/oauth.d.ts +206 -0
- package/lib/Discord/types/request-handler.d.ts +54 -0
- package/lib/Discord/types/scheduled-events.d.ts +87 -0
- package/lib/Discord/types/shared.d.ts +24 -0
- package/lib/Discord/types/users.d.ts +104 -0
- package/lib/Discord/types/voice.d.ts +45 -0
- package/lib/Discord/types/webhooks.d.ts +75 -0
- package/lib/Discord/util/Collection.cjs +77 -0
- package/lib/Discord/util/Collection.d.ts +47 -0
- package/lib/Discord/util/Collection.js +77 -0
- package/lib/Discord/util/Errors.cjs +84 -0
- package/lib/Discord/util/Errors.d.ts +43 -0
- package/lib/Discord/util/Errors.js +84 -0
- package/lib/Discord/util/QueryBuilder.cjs +20 -0
- package/lib/Discord/util/QueryBuilder.d.ts +4 -0
- package/lib/Discord/util/QueryBuilder.js +20 -0
- package/lib/Discord/util/Routes.cjs +293 -0
- package/lib/Discord/util/Routes.d.ts +145 -0
- package/lib/Discord/util/Routes.js +293 -0
- package/lib/Discord/util/SimpleCollection.cjs +82 -0
- package/lib/Discord/util/SimpleCollection.d.ts +12 -0
- package/lib/Discord/util/SimpleCollection.js +82 -0
- package/lib/Discord/util/Time.cjs +93 -0
- package/lib/Discord/util/Time.d.ts +39 -0
- package/lib/Discord/util/Time.js +93 -0
- package/lib/Discord/util/TypedCollection.cjs +81 -0
- package/lib/Discord/util/TypedCollection.d.ts +24 -0
- package/lib/Discord/util/TypedCollection.js +81 -0
- package/lib/Discord/util/TypedEmitter.cjs +20 -0
- package/lib/Discord/util/TypedEmitter.d.ts +18 -0
- package/lib/Discord/util/TypedEmitter.js +20 -0
- package/lib/Discord/util/Util.cjs +906 -0
- package/lib/Discord/util/Util.d.ts +66 -0
- package/lib/Discord/util/Util.js +906 -0
- package/lib/Discord/util/interactions/InteractionOptionsWrapper.cjs +211 -0
- package/lib/Discord/util/interactions/InteractionOptionsWrapper.d.ts +170 -0
- package/lib/Discord/util/interactions/InteractionOptionsWrapper.js +211 -0
- package/lib/Discord/util/interactions/MessageInteractionResponse.cjs +29 -0
- package/lib/Discord/util/interactions/MessageInteractionResponse.d.ts +27 -0
- package/lib/Discord/util/interactions/MessageInteractionResponse.js +29 -0
- package/lib/Discord/util/interactions/ModalSubmitInteractionComponentsWrapper.cjs +101 -0
- package/lib/Discord/util/interactions/ModalSubmitInteractionComponentsWrapper.d.ts +157 -0
- package/lib/Discord/util/interactions/ModalSubmitInteractionComponentsWrapper.js +101 -0
- package/lib/Discord/util/interactions/SelectMenuValuesWrapper.cjs +81 -0
- package/lib/Discord/util/interactions/SelectMenuValuesWrapper.d.ts +59 -0
- package/lib/Discord/util/interactions/SelectMenuValuesWrapper.js +81 -0
- package/lib/Discord/util/interactions/shared.cjs +20 -0
- package/lib/Discord/util/interactions/shared.d.ts +7 -0
- package/lib/Discord/util/interactions/shared.js +20 -0
- package/lib/Discord/util/warning.cjs +34 -0
- package/lib/Discord/util/warning.d.ts +6 -0
- package/lib/Discord/util/warning.js +34 -0
- package/lib/Signal/Group/ciphertext-message.d.ts +10 -0
- package/lib/Signal/Group/ciphertext-message.d.ts.map +1 -0
- package/lib/Signal/Group/ciphertext-message.js +12 -0
- package/lib/Signal/Group/ciphertext-message.js.map +1 -0
- package/lib/Signal/Group/group-session-builder.d.ts +8 -0
- package/lib/Signal/Group/group-session-builder.d.ts.map +1 -0
- package/lib/Signal/Group/group-session-builder.js +30 -0
- package/lib/Signal/Group/group-session-builder.js.map +1 -0
- package/lib/Signal/Group/group_cipher.d.ts +11 -0
- package/lib/Signal/Group/group_cipher.d.ts.map +1 -0
- package/lib/Signal/Group/group_cipher.js +82 -0
- package/lib/Signal/Group/group_cipher.js.map +1 -0
- package/lib/Signal/Group/index.d.ts +12 -0
- package/lib/Signal/Group/index.d.ts.map +1 -0
- package/lib/Signal/Group/index.js +12 -0
- package/lib/Signal/Group/index.js.map +1 -0
- package/lib/Signal/Group/keyhelper.d.ts +7 -0
- package/lib/Signal/Group/keyhelper.d.ts.map +1 -0
- package/lib/Signal/Group/keyhelper.js +18 -0
- package/lib/Signal/Group/keyhelper.js.map +1 -0
- package/lib/Signal/Group/sender-chain-key.d.ts +14 -0
- package/lib/Signal/Group/sender-chain-key.d.ts.map +1 -0
- package/lib/Signal/Group/sender-chain-key.js +26 -0
- package/lib/Signal/Group/sender-chain-key.js.map +1 -0
- package/lib/Signal/Group/sender-key-distribution-message.d.ts +17 -0
- package/lib/Signal/Group/sender-key-distribution-message.d.ts.map +1 -0
- package/lib/Signal/Group/sender-key-distribution-message.js +63 -0
- package/lib/Signal/Group/sender-key-distribution-message.js.map +1 -0
- package/lib/Signal/Group/sender-key-message.d.ts +19 -0
- package/lib/Signal/Group/sender-key-message.d.ts.map +1 -0
- package/lib/Signal/Group/sender-key-message.js +66 -0
- package/lib/Signal/Group/sender-key-message.js.map +1 -0
- package/lib/Signal/Group/sender-key-name.d.ts +12 -0
- package/lib/Signal/Group/sender-key-name.d.ts.map +1 -0
- package/lib/Signal/Group/sender-key-name.js +48 -0
- package/lib/Signal/Group/sender-key-name.js.map +1 -0
- package/lib/Signal/Group/sender-key-record.d.ts +13 -0
- package/lib/Signal/Group/sender-key-record.d.ts.map +1 -0
- package/lib/Signal/Group/sender-key-record.js +41 -0
- package/lib/Signal/Group/sender-key-record.js.map +1 -0
- package/lib/Signal/Group/sender-key-state.d.ts +17 -0
- package/lib/Signal/Group/sender-key-state.d.ts.map +1 -0
- package/lib/Signal/Group/sender-key-state.js +84 -0
- package/lib/Signal/Group/sender-key-state.js.map +1 -0
- package/lib/Signal/Group/sender-message-key.d.ts +12 -0
- package/lib/Signal/Group/sender-message-key.d.ts.map +1 -0
- package/lib/Signal/Group/sender-message-key.js +26 -0
- package/lib/Signal/Group/sender-message-key.js.map +1 -0
- package/lib/Signal/libsignal.d.ts +55 -0
- package/lib/Signal/libsignal.d.ts.map +1 -0
- package/lib/Signal/libsignal.js +431 -0
- package/lib/Signal/libsignal.js.map +1 -0
- package/lib/Signal/lid-mapping.d.ts +21 -0
- package/lib/Signal/lid-mapping.d.ts.map +1 -0
- package/lib/Signal/lid-mapping.js +277 -0
- package/lib/Signal/lid-mapping.js.map +1 -0
- package/lib/Socket/Client/index.d.ts +3 -0
- package/lib/Socket/Client/index.d.ts.map +1 -0
- package/lib/Socket/Client/index.js +3 -0
- package/lib/Socket/Client/index.js.map +1 -0
- package/lib/Socket/Client/types.d.ts +6 -0
- package/lib/Socket/Client/types.d.ts.map +1 -0
- package/lib/Socket/Client/types.js +11 -0
- package/lib/Socket/Client/types.js.map +1 -0
- package/lib/Socket/Client/websocket.d.ts +13 -0
- package/lib/Socket/Client/websocket.d.ts.map +1 -0
- package/lib/Socket/Client/websocket.js +54 -0
- package/lib/Socket/Client/websocket.js.map +1 -0
- package/lib/Socket/business.d.ts +395 -0
- package/lib/Socket/business.d.ts.map +1 -0
- package/lib/Socket/business.js +380 -0
- package/lib/Socket/business.js.map +1 -0
- package/lib/Socket/chats.d.ts +137 -0
- package/lib/Socket/chats.d.ts.map +1 -0
- package/lib/Socket/chats.js +1214 -0
- package/lib/Socket/chats.js.map +1 -0
- package/lib/Socket/communities.d.ts +562 -0
- package/lib/Socket/communities.d.ts.map +1 -0
- package/lib/Socket/communities.js +432 -0
- package/lib/Socket/communities.js.map +1 -0
- package/lib/Socket/groups.d.ts +286 -0
- package/lib/Socket/groups.d.ts.map +1 -0
- package/lib/Socket/groups.js +348 -0
- package/lib/Socket/groups.js.map +1 -0
- package/lib/Socket/index.d.ts +530 -0
- package/lib/Socket/index.d.ts.map +1 -0
- package/lib/Socket/index.js +12 -0
- package/lib/Socket/index.js.map +1 -0
- package/lib/Socket/messages-recv.d.ts +334 -0
- package/lib/Socket/messages-recv.d.ts.map +1 -0
- package/lib/Socket/messages-recv.js +1765 -0
- package/lib/Socket/messages-recv.js.map +1 -0
- package/lib/Socket/messages-send.d.ts +330 -0
- package/lib/Socket/messages-send.d.ts.map +1 -0
- package/lib/Socket/messages-send.js +1368 -0
- package/lib/Socket/messages-send.js.map +1 -0
- package/lib/Socket/mex.d.ts +2 -0
- package/lib/Socket/mex.d.ts.map +1 -0
- package/lib/Socket/mex.js +42 -0
- package/lib/Socket/mex.js.map +1 -0
- package/lib/Socket/newsletter.d.ts +283 -0
- package/lib/Socket/newsletter.d.ts.map +1 -0
- package/lib/Socket/newsletter.js +226 -0
- package/lib/Socket/newsletter.js.map +1 -0
- package/lib/Socket/socket.d.ts +61 -0
- package/lib/Socket/socket.d.ts.map +1 -0
- package/lib/Socket/socket.js +972 -0
- package/lib/Socket/socket.js.map +1 -0
- package/lib/Store/index.d.ts +4 -0
- package/lib/Store/index.d.ts.map +1 -0
- package/lib/Store/index.js +4 -0
- package/lib/Store/index.js.map +1 -0
- package/lib/Store/make-in-memory-store.d.ts +63 -0
- package/lib/Store/make-in-memory-store.d.ts.map +1 -0
- package/lib/Store/make-in-memory-store.js +471 -0
- package/lib/Store/make-in-memory-store.js.map +1 -0
- package/lib/Store/make-ordered-dictionary.d.ts +13 -0
- package/lib/Store/make-ordered-dictionary.d.ts.map +1 -0
- package/lib/Store/make-ordered-dictionary.js +79 -0
- package/lib/Store/make-ordered-dictionary.js.map +1 -0
- package/lib/Store/object-repository.d.ts +11 -0
- package/lib/Store/object-repository.d.ts.map +1 -0
- package/lib/Store/object-repository.js +24 -0
- package/lib/Store/object-repository.js.map +1 -0
- package/lib/Telegram/button.js +147 -0
- package/lib/Telegram/cli.mjs +105 -0
- package/lib/Telegram/composer.js +582 -0
- package/lib/Telegram/context.js +855 -0
- package/lib/Telegram/core/helpers/args.js +57 -0
- package/lib/Telegram/core/helpers/check.js +55 -0
- package/lib/Telegram/core/helpers/compact.js +16 -0
- package/lib/Telegram/core/helpers/deunionize.js +12 -0
- package/lib/Telegram/core/helpers/formatting.js +91 -0
- package/lib/Telegram/core/helpers/util.js +50 -0
- package/lib/Telegram/core/network/client.js +330 -0
- package/lib/Telegram/core/network/error.js +21 -0
- package/lib/Telegram/core/network/multipart-stream.js +71 -0
- package/lib/Telegram/core/network/polling.js +87 -0
- package/lib/Telegram/core/network/webhook.js +54 -0
- package/lib/Telegram/core/types/typegram.js +27 -0
- package/lib/Telegram/elynn-telegraf.js +256 -0
- package/lib/Telegram/esm-bridge.mjs +21 -0
- package/lib/Telegram/filters.js +69 -0
- package/lib/Telegram/format.js +58 -0
- package/lib/Telegram/future.js +140 -0
- package/lib/Telegram/index.js +59 -0
- package/lib/Telegram/input.js +61 -0
- package/lib/Telegram/markup.js +121 -0
- package/lib/Telegram/middleware.js +2 -0
- package/lib/Telegram/package.json +3 -0
- package/lib/Telegram/reactions.js +84 -0
- package/lib/Telegram/router.js +46 -0
- package/lib/Telegram/scenes/base.js +39 -0
- package/lib/Telegram/scenes/context.js +104 -0
- package/lib/Telegram/scenes/index.js +21 -0
- package/lib/Telegram/scenes/stage.js +49 -0
- package/lib/Telegram/scenes/wizard/context.js +31 -0
- package/lib/Telegram/scenes/wizard/index.js +45 -0
- package/lib/Telegram/scenes.js +17 -0
- package/lib/Telegram/session.js +166 -0
- package/lib/Telegram/telegram-types.js +6 -0
- package/lib/Telegram/telegram.js +945 -0
- package/lib/Telegram/types.js +2 -0
- package/lib/Telegram/utils.js +5 -0
- package/lib/Types/Auth.d.ts +2 -0
- package/lib/Types/Auth.d.ts.map +1 -0
- package/lib/Types/Auth.js +2 -0
- package/lib/Types/Auth.js.map +1 -0
- package/lib/Types/Bussines.d.ts +2 -0
- package/lib/Types/Bussines.d.ts.map +1 -0
- package/lib/Types/Bussines.js +2 -0
- package/lib/Types/Bussines.js.map +1 -0
- package/lib/Types/Call.d.ts +2 -0
- package/lib/Types/Call.d.ts.map +1 -0
- package/lib/Types/Call.js +2 -0
- package/lib/Types/Call.js.map +1 -0
- package/lib/Types/Chat.d.ts +2 -0
- package/lib/Types/Chat.d.ts.map +1 -0
- package/lib/Types/Chat.js +8 -0
- package/lib/Types/Chat.js.map +1 -0
- package/lib/Types/Contact.d.ts +2 -0
- package/lib/Types/Contact.d.ts.map +1 -0
- package/lib/Types/Contact.js +2 -0
- package/lib/Types/Contact.js.map +1 -0
- package/lib/Types/Events.d.ts +2 -0
- package/lib/Types/Events.d.ts.map +1 -0
- package/lib/Types/Events.js +2 -0
- package/lib/Types/Events.js.map +1 -0
- package/lib/Types/GroupMetadata.d.ts +2 -0
- package/lib/Types/GroupMetadata.d.ts.map +1 -0
- package/lib/Types/GroupMetadata.js +2 -0
- package/lib/Types/GroupMetadata.js.map +1 -0
- package/lib/Types/Label.d.ts +3 -0
- package/lib/Types/Label.d.ts.map +1 -0
- package/lib/Types/Label.js +25 -0
- package/lib/Types/Label.js.map +1 -0
- package/lib/Types/LabelAssociation.d.ts +3 -0
- package/lib/Types/LabelAssociation.d.ts.map +1 -0
- package/lib/Types/LabelAssociation.js +7 -0
- package/lib/Types/LabelAssociation.js.map +1 -0
- package/lib/Types/Message.d.ts +12 -0
- package/lib/Types/Message.d.ts.map +1 -0
- package/lib/Types/Message.js +18 -0
- package/lib/Types/Message.js.map +1 -0
- package/lib/Types/Mex.d.ts +3 -0
- package/lib/Types/Mex.d.ts.map +1 -0
- package/lib/Types/Mex.js +39 -0
- package/lib/Types/Mex.js.map +1 -0
- package/lib/Types/Product.d.ts +2 -0
- package/lib/Types/Product.d.ts.map +1 -0
- package/lib/Types/Product.js +2 -0
- package/lib/Types/Product.js.map +1 -0
- package/lib/Types/RichType.d.ts +3 -0
- package/lib/Types/RichType.d.ts.map +1 -0
- package/lib/Types/RichType.js +23 -0
- package/lib/Types/RichType.js.map +1 -0
- package/lib/Types/Signal.d.ts +2 -0
- package/lib/Types/Signal.d.ts.map +1 -0
- package/lib/Types/Signal.js +2 -0
- package/lib/Types/Signal.js.map +1 -0
- package/lib/Types/Socket.d.ts +2 -0
- package/lib/Types/Socket.d.ts.map +1 -0
- package/lib/Types/Socket.js +2 -0
- package/lib/Types/Socket.js.map +1 -0
- package/lib/Types/State.d.ts +6 -0
- package/lib/Types/State.d.ts.map +1 -0
- package/lib/Types/State.js +56 -0
- package/lib/Types/State.js.map +1 -0
- package/lib/Types/USync.d.ts +2 -0
- package/lib/Types/USync.d.ts.map +1 -0
- package/lib/Types/USync.js +2 -0
- package/lib/Types/USync.js.map +1 -0
- package/lib/Types/index.d.ts +14 -0
- package/lib/Types/index.d.ts.map +1 -0
- package/lib/Types/index.js +26 -0
- package/lib/Types/index.js.map +1 -0
- package/lib/Utils/auth-utils.d.ts +58 -0
- package/lib/Utils/auth-utils.d.ts.map +1 -0
- package/lib/Utils/auth-utils.js +302 -0
- package/lib/Utils/auth-utils.js.map +1 -0
- package/lib/Utils/browser-utils.d.ts +9 -0
- package/lib/Utils/browser-utils.d.ts.map +1 -0
- package/lib/Utils/browser-utils.js +36 -0
- package/lib/Utils/browser-utils.js.map +1 -0
- package/lib/Utils/business.d.ts +50 -0
- package/lib/Utils/business.d.ts.map +1 -0
- package/lib/Utils/business.js +231 -0
- package/lib/Utils/business.js.map +1 -0
- package/lib/Utils/chat-utils.d.ts +409 -0
- package/lib/Utils/chat-utils.d.ts.map +1 -0
- package/lib/Utils/chat-utils.js +872 -0
- package/lib/Utils/chat-utils.js.map +1 -0
- package/lib/Utils/companion-reg-client-utils.d.ts +5 -0
- package/lib/Utils/companion-reg-client-utils.d.ts.map +1 -0
- package/lib/Utils/companion-reg-client-utils.js +46 -0
- package/lib/Utils/companion-reg-client-utils.js.map +1 -0
- package/lib/Utils/crypto.d.ts +40 -0
- package/lib/Utils/crypto.d.ts.map +1 -0
- package/lib/Utils/crypto.js +119 -0
- package/lib/Utils/crypto.js.map +1 -0
- package/lib/Utils/decode-wa-message.d.ts +84 -0
- package/lib/Utils/decode-wa-message.d.ts.map +1 -0
- package/lib/Utils/decode-wa-message.js +325 -0
- package/lib/Utils/decode-wa-message.js.map +1 -0
- package/lib/Utils/event-buffer.d.ts +13 -0
- package/lib/Utils/event-buffer.d.ts.map +1 -0
- package/lib/Utils/event-buffer.js +622 -0
- package/lib/Utils/event-buffer.js.map +1 -0
- package/lib/Utils/generics.d.ts +64 -0
- package/lib/Utils/generics.d.ts.map +1 -0
- package/lib/Utils/generics.js +395 -0
- package/lib/Utils/generics.js.map +1 -0
- package/lib/Utils/history.d.ts +76 -0
- package/lib/Utils/history.d.ts.map +1 -0
- package/lib/Utils/history.js +134 -0
- package/lib/Utils/history.js.map +1 -0
- package/lib/Utils/identity-change-handler.d.ts +14 -0
- package/lib/Utils/identity-change-handler.d.ts.map +1 -0
- package/lib/Utils/identity-change-handler.js +50 -0
- package/lib/Utils/identity-change-handler.js.map +1 -0
- package/lib/Utils/index.d.ts +25 -0
- package/lib/Utils/index.d.ts.map +1 -0
- package/lib/Utils/index.js +27 -0
- package/lib/Utils/index.js.map +1 -0
- package/lib/Utils/link-preview.d.ts +13 -0
- package/lib/Utils/link-preview.d.ts.map +1 -0
- package/lib/Utils/link-preview.js +85 -0
- package/lib/Utils/link-preview.js.map +1 -0
- package/lib/Utils/logger.d.ts +3 -0
- package/lib/Utils/logger.d.ts.map +1 -0
- package/lib/Utils/logger.js +3 -0
- package/lib/Utils/logger.js.map +1 -0
- package/lib/Utils/lt-hash.d.ts +7 -0
- package/lib/Utils/lt-hash.d.ts.map +1 -0
- package/lib/Utils/lt-hash.js +8 -0
- package/lib/Utils/lt-hash.js.map +1 -0
- package/lib/Utils/make-mutex.d.ts +7 -0
- package/lib/Utils/make-mutex.d.ts.map +1 -0
- package/lib/Utils/make-mutex.js +33 -0
- package/lib/Utils/make-mutex.js.map +1 -0
- package/lib/Utils/message-retry-manager.d.ts +80 -0
- package/lib/Utils/message-retry-manager.d.ts.map +1 -0
- package/lib/Utils/message-retry-manager.js +265 -0
- package/lib/Utils/message-retry-manager.js.map +1 -0
- package/lib/Utils/messages-media.d.ts +137 -0
- package/lib/Utils/messages-media.d.ts.map +1 -0
- package/lib/Utils/messages-media.js +843 -0
- package/lib/Utils/messages-media.js.map +1 -0
- package/lib/Utils/messages.d.ts +46 -0
- package/lib/Utils/messages.d.ts.map +1 -0
- package/lib/Utils/messages.js +1878 -0
- package/lib/Utils/messages.js.map +1 -0
- package/lib/Utils/noise-handler.d.ts +21 -0
- package/lib/Utils/noise-handler.d.ts.map +1 -0
- package/lib/Utils/noise-handler.js +201 -0
- package/lib/Utils/noise-handler.js.map +1 -0
- package/lib/Utils/offline-node-processor.d.ts +10 -0
- package/lib/Utils/offline-node-processor.d.ts.map +1 -0
- package/lib/Utils/offline-node-processor.js +40 -0
- package/lib/Utils/offline-node-processor.js.map +1 -0
- package/lib/Utils/pre-key-manager.d.ts +26 -0
- package/lib/Utils/pre-key-manager.d.ts.map +1 -0
- package/lib/Utils/pre-key-manager.js +106 -0
- package/lib/Utils/pre-key-manager.js.map +1 -0
- package/lib/Utils/process-message.d.ts +84 -0
- package/lib/Utils/process-message.d.ts.map +1 -0
- package/lib/Utils/process-message.js +745 -0
- package/lib/Utils/process-message.js.map +1 -0
- package/lib/Utils/reporting-utils.d.ts +13 -0
- package/lib/Utils/reporting-utils.d.ts.map +1 -0
- package/lib/Utils/reporting-utils.js +258 -0
- package/lib/Utils/reporting-utils.js.map +1 -0
- package/lib/Utils/rich-message-utils.d.ts +49 -0
- package/lib/Utils/rich-message-utils.d.ts.map +1 -0
- package/lib/Utils/rich-message-utils.js +400 -0
- package/lib/Utils/rich-message-utils.js.map +1 -0
- package/lib/Utils/session-guard.js +148 -0
- package/lib/Utils/signal.d.ts +83 -0
- package/lib/Utils/signal.d.ts.map +1 -0
- package/lib/Utils/signal.js +201 -0
- package/lib/Utils/signal.js.map +1 -0
- package/lib/Utils/stanza-ack.d.ts +17 -0
- package/lib/Utils/stanza-ack.d.ts.map +1 -0
- package/lib/Utils/stanza-ack.js +38 -0
- package/lib/Utils/stanza-ack.js.map +1 -0
- package/lib/Utils/sync-action-utils.d.ts +3 -0
- package/lib/Utils/sync-action-utils.d.ts.map +1 -0
- package/lib/Utils/sync-action-utils.js +49 -0
- package/lib/Utils/sync-action-utils.js.map +1 -0
- package/lib/Utils/tc-token-utils.d.ts +30 -0
- package/lib/Utils/tc-token-utils.d.ts.map +1 -0
- package/lib/Utils/tc-token-utils.js +163 -0
- package/lib/Utils/tc-token-utils.js.map +1 -0
- package/lib/Utils/text-sticker.js +149 -0
- package/lib/Utils/use-multi-file-auth-state.d.ts +11 -0
- package/lib/Utils/use-multi-file-auth-state.d.ts.map +1 -0
- package/lib/Utils/use-multi-file-auth-state.js +121 -0
- package/lib/Utils/use-multi-file-auth-state.js.map +1 -0
- package/lib/Utils/use-single-file-auth-state.d.ts +11 -0
- package/lib/Utils/use-single-file-auth-state.d.ts.map +1 -0
- package/lib/Utils/use-single-file-auth-state.js +109 -0
- package/lib/Utils/use-single-file-auth-state.js.map +1 -0
- package/lib/Utils/use-sqlite-auth-state.d.ts +11 -0
- package/lib/Utils/use-sqlite-auth-state.d.ts.map +1 -0
- package/lib/Utils/use-sqlite-auth-state.js +109 -0
- package/lib/Utils/use-sqlite-auth-state.js.map +1 -0
- package/lib/Utils/validate-connection.d.ts +44 -0
- package/lib/Utils/validate-connection.d.ts.map +1 -0
- package/lib/Utils/validate-connection.js +203 -0
- package/lib/Utils/validate-connection.js.map +1 -0
- package/lib/WABinary/constants.d.ts +62 -0
- package/lib/WABinary/constants.d.ts.map +1 -0
- package/lib/WABinary/constants.js +1467 -0
- package/lib/WABinary/constants.js.map +1 -0
- package/lib/WABinary/decode.d.ts +10 -0
- package/lib/WABinary/decode.d.ts.map +1 -0
- package/lib/WABinary/decode.js +262 -0
- package/lib/WABinary/decode.js.map +1 -0
- package/lib/WABinary/encode.d.ts +3 -0
- package/lib/WABinary/encode.d.ts.map +1 -0
- package/lib/WABinary/encode.js +220 -0
- package/lib/WABinary/encode.js.map +1 -0
- package/lib/WABinary/generic-utils.d.ts +77 -0
- package/lib/WABinary/generic-utils.d.ts.map +1 -0
- package/lib/WABinary/generic-utils.js +226 -0
- package/lib/WABinary/generic-utils.js.map +1 -0
- package/lib/WABinary/index.d.ts +6 -0
- package/lib/WABinary/index.d.ts.map +1 -0
- package/lib/WABinary/index.js +6 -0
- package/lib/WABinary/index.js.map +1 -0
- package/lib/WABinary/jid-utils.d.ts +29 -0
- package/lib/WABinary/jid-utils.d.ts.map +1 -0
- package/lib/WABinary/jid-utils.js +96 -0
- package/lib/WABinary/jid-utils.js.map +1 -0
- package/lib/WABinary/types.d.ts +2 -0
- package/lib/WABinary/types.d.ts.map +1 -0
- package/lib/WABinary/types.js +2 -0
- package/lib/WABinary/types.js.map +1 -0
- package/lib/WAM/BinaryInfo.d.ts +8 -0
- package/lib/WAM/BinaryInfo.d.ts.map +1 -0
- package/lib/WAM/BinaryInfo.js +10 -0
- package/lib/WAM/BinaryInfo.js.map +1 -0
- package/lib/WAM/constants.d.ts +34927 -0
- package/lib/WAM/constants.d.ts.map +1 -0
- package/lib/WAM/constants.js +22853 -0
- package/lib/WAM/constants.js.map +1 -0
- package/lib/WAM/encode.d.ts +2 -0
- package/lib/WAM/encode.d.ts.map +1 -0
- package/lib/WAM/encode.js +150 -0
- package/lib/WAM/encode.js.map +1 -0
- package/lib/WAM/index.d.ts +4 -0
- package/lib/WAM/index.d.ts.map +1 -0
- package/lib/WAM/index.js +4 -0
- package/lib/WAM/index.js.map +1 -0
- package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +37 -0
- package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts.map +1 -0
- package/lib/WAUSync/Protocols/USyncContactProtocol.js +52 -0
- package/lib/WAUSync/Protocols/USyncContactProtocol.js.map +1 -0
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +23 -0
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts.map +1 -0
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +54 -0
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.js.map +1 -0
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +13 -0
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts.map +1 -0
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +27 -0
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js.map +1 -0
- package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +13 -0
- package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts.map +1 -0
- package/lib/WAUSync/Protocols/USyncStatusProtocol.js +38 -0
- package/lib/WAUSync/Protocols/USyncStatusProtocol.js.map +1 -0
- package/lib/WAUSync/Protocols/USyncUsernameProtocol.d.ts +10 -0
- package/lib/WAUSync/Protocols/USyncUsernameProtocol.d.ts.map +1 -0
- package/lib/WAUSync/Protocols/USyncUsernameProtocol.js +25 -0
- package/lib/WAUSync/Protocols/USyncUsernameProtocol.js.map +1 -0
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts +39 -0
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts.map +1 -0
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +51 -0
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js.map +1 -0
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts +15 -0
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts.map +1 -0
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.js +29 -0
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.js.map +1 -0
- package/lib/WAUSync/Protocols/index.d.ts +6 -0
- package/lib/WAUSync/Protocols/index.d.ts.map +1 -0
- package/lib/WAUSync/Protocols/index.js +6 -0
- package/lib/WAUSync/Protocols/index.js.map +1 -0
- package/lib/WAUSync/USyncQuery.d.ts +21 -0
- package/lib/WAUSync/USyncQuery.d.ts.map +1 -0
- package/lib/WAUSync/USyncQuery.js +98 -0
- package/lib/WAUSync/USyncQuery.js.map +1 -0
- package/lib/WAUSync/USyncUser.d.ts +17 -0
- package/lib/WAUSync/USyncUser.d.ts.map +1 -0
- package/lib/WAUSync/USyncUser.js +31 -0
- package/lib/WAUSync/USyncUser.js.map +1 -0
- package/lib/WAUSync/index.d.ts +4 -0
- package/lib/WAUSync/index.d.ts.map +1 -0
- package/lib/WAUSync/index.js +4 -0
- package/lib/WAUSync/index.js.map +1 -0
- package/lib/index.d.ts +201 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +314 -0
- package/lib/index.js.map +1 -0
- package/lib/plugins/loader.cjs +26 -0
- package/lib/plugins/loader.js +94 -0
- package/package.json +148 -0
|
@@ -0,0 +1,987 @@
|
|
|
1
|
+
/** @module Types/Guilds */
|
|
2
|
+
import type * as Types from "./namespaced";
|
|
3
|
+
import type {
|
|
4
|
+
ChannelTypes,
|
|
5
|
+
DefaultMessageNotificationLevels,
|
|
6
|
+
ExplicitContentFilterLevels,
|
|
7
|
+
GuildFeature,
|
|
8
|
+
GuildNSFWLevels,
|
|
9
|
+
IntegrationExpireBehaviors,
|
|
10
|
+
IntegrationType,
|
|
11
|
+
MFALevels,
|
|
12
|
+
PremiumTiers,
|
|
13
|
+
StageInstancePrivacyLevels,
|
|
14
|
+
StickerFormatTypes,
|
|
15
|
+
StickerTypes,
|
|
16
|
+
ThreadAutoArchiveDuration,
|
|
17
|
+
VerificationLevels,
|
|
18
|
+
VideoQualityModes,
|
|
19
|
+
SortOrderTypes,
|
|
20
|
+
ForumLayoutTypes,
|
|
21
|
+
OnboardingModes,
|
|
22
|
+
MemberSearchSortType,
|
|
23
|
+
MemberJoinSourceType,
|
|
24
|
+
JSONErrorCodes
|
|
25
|
+
} from "../Constants";
|
|
26
|
+
import type User from "../structures/User";
|
|
27
|
+
import type Integration from "../structures/Integration";
|
|
28
|
+
import type Member from "../structures/Member";
|
|
29
|
+
|
|
30
|
+
// channels, guild_scheduled_events, joined_at, large, member_count, members, presences,
|
|
31
|
+
// stage_instances, threads, unavailable, voice_states - all gateway only
|
|
32
|
+
export interface RawGuild {
|
|
33
|
+
afk_channel_id: string | null;
|
|
34
|
+
afk_timeout: number;
|
|
35
|
+
application_id: string | null;
|
|
36
|
+
approximate_member_count?: number;
|
|
37
|
+
approximate_presence_count?: number;
|
|
38
|
+
banner: string | null;
|
|
39
|
+
channels: Array<Types.Channels.RawGuildChannel>;
|
|
40
|
+
default_message_notifications: DefaultMessageNotificationLevels;
|
|
41
|
+
description: string | null;
|
|
42
|
+
discovery_splash: string | null;
|
|
43
|
+
emojis: Array<RawGuildEmoji>;
|
|
44
|
+
explicit_content_filter: ExplicitContentFilterLevels;
|
|
45
|
+
features: Array<GuildFeature>;
|
|
46
|
+
guild_scheduled_events: Array<Types.ScheduledEvents.RawScheduledEvent>;
|
|
47
|
+
icon: string | null;
|
|
48
|
+
icon_hash?: string | null;
|
|
49
|
+
id: string;
|
|
50
|
+
incident_actions: RawIncidentActions | null;
|
|
51
|
+
inventory_settings: RawInventorySettings | null;
|
|
52
|
+
joined_at: string | null;
|
|
53
|
+
large: boolean;
|
|
54
|
+
latest_onboarding_question_id?: string | null;
|
|
55
|
+
max_members?: number;
|
|
56
|
+
max_presences?: number;
|
|
57
|
+
max_stage_video_channel_users?: number;
|
|
58
|
+
max_video_channel_users?: number;
|
|
59
|
+
member_count: number;
|
|
60
|
+
members: Array<RawMember>;
|
|
61
|
+
mfa_level: MFALevels;
|
|
62
|
+
name: string;
|
|
63
|
+
nsfw_level: GuildNSFWLevels;
|
|
64
|
+
owner?: boolean;
|
|
65
|
+
owner_id: string | null;
|
|
66
|
+
permissions?: string;
|
|
67
|
+
preferred_locale: string;
|
|
68
|
+
premium_progress_bar_enabled: boolean;
|
|
69
|
+
premium_subscription_count?: number;
|
|
70
|
+
premium_tier: PremiumTiers;
|
|
71
|
+
presences: Array<Types.Gateway.PresenceUpdate>;
|
|
72
|
+
profile?: GuildProfile;
|
|
73
|
+
public_updates_channel_id: string | null;
|
|
74
|
+
region?: string | null;
|
|
75
|
+
roles: Array<RawRole>;
|
|
76
|
+
rules_channel_id: string | null;
|
|
77
|
+
safety_alerts_channel_id: string | null;
|
|
78
|
+
splash: string | null;
|
|
79
|
+
stage_instances: Array<RawStageInstance>;
|
|
80
|
+
stickers?: Array<RawSticker>;
|
|
81
|
+
system_channel_flags: number;
|
|
82
|
+
system_channel_id: string | null;
|
|
83
|
+
threads: Array<Types.Channels.RawThreadChannel>;
|
|
84
|
+
unavailable?: false;
|
|
85
|
+
vanity_url_code: string | null;
|
|
86
|
+
verification_level: VerificationLevels;
|
|
87
|
+
voice_states: Array<Types.Voice.RawVoiceState>;
|
|
88
|
+
welcome_screen?: RawWelcomeScreen;
|
|
89
|
+
widget_channel_id?: string | null;
|
|
90
|
+
widget_enabled?: boolean;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export interface RawInviteGuild extends Pick<RawGuild, "id" | "name" | "splash" | "banner" | "description" | "icon" | "features" | "verification_level" | "vanity_url_code" | "premium_subscription_count" | "nsfw_level"> {}
|
|
94
|
+
|
|
95
|
+
export interface RawRole {
|
|
96
|
+
/** @deprecated */
|
|
97
|
+
color: number;
|
|
98
|
+
colors: RawRoleColors;
|
|
99
|
+
flags: number;
|
|
100
|
+
hoist: boolean;
|
|
101
|
+
icon?: string | null;
|
|
102
|
+
id: string;
|
|
103
|
+
managed: boolean;
|
|
104
|
+
mentionable: boolean;
|
|
105
|
+
name: string;
|
|
106
|
+
permissions: string;
|
|
107
|
+
position: number;
|
|
108
|
+
tags?: RawRoleTags;
|
|
109
|
+
unicode_emoji?: string | null;
|
|
110
|
+
}
|
|
111
|
+
export interface RawRoleTags {
|
|
112
|
+
available_for_purchase?: null;
|
|
113
|
+
bot_id?: string;
|
|
114
|
+
guild_connections?: null;
|
|
115
|
+
integration_id?: string;
|
|
116
|
+
premium_subscriber?: null;
|
|
117
|
+
subscription_listing_id?: string;
|
|
118
|
+
}
|
|
119
|
+
export interface RoleTags {
|
|
120
|
+
availableForPurchase: boolean;
|
|
121
|
+
botID?: string;
|
|
122
|
+
guildConnections: boolean;
|
|
123
|
+
integrationID?: string;
|
|
124
|
+
premiumSubscriber: boolean;
|
|
125
|
+
subscriptionListingID?: string;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export interface RawRoleColors {
|
|
129
|
+
primary_color: number;
|
|
130
|
+
secondary_color: number | null;
|
|
131
|
+
tertiary_color: number | null;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export interface RoleColors {
|
|
135
|
+
primaryColor: number;
|
|
136
|
+
secondaryColor: number | null;
|
|
137
|
+
tertiaryColor: number | null;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export interface RawGuildEmoji extends Required<Omit<Types.Misc.Emoji, "user" | "id">> { id: string; user?: Types.Users.RawUser; }
|
|
141
|
+
export interface GuildEmoji extends Omit<RawGuildEmoji, "user" | "id" | "require_colons"> { id: string; requireColons?: boolean; user?: User; }
|
|
142
|
+
export interface RawWelcomeScreen {
|
|
143
|
+
description: string | null;
|
|
144
|
+
welcome_channels: Array<RawWelcomeScreenChannel>;
|
|
145
|
+
}
|
|
146
|
+
export interface RawWelcomeScreenChannel {
|
|
147
|
+
channel_id: string;
|
|
148
|
+
description: string;
|
|
149
|
+
emoji_id: string | null;
|
|
150
|
+
emoji_name: string | null;
|
|
151
|
+
}
|
|
152
|
+
export interface WelcomeScreen {
|
|
153
|
+
/** The description of the welcome screen. */
|
|
154
|
+
description: string | null;
|
|
155
|
+
/** If the welcome screen is enabled. */
|
|
156
|
+
welcomeChannels: Array<WelcomeScreenChannel>;
|
|
157
|
+
}
|
|
158
|
+
export interface WelcomeScreenChannel {
|
|
159
|
+
/** The ID of the welcome channel. */
|
|
160
|
+
channelID: string;
|
|
161
|
+
/** The description of the welcome channel. */
|
|
162
|
+
description: string;
|
|
163
|
+
/** The ID of the emoji to use on the welcome channel. */
|
|
164
|
+
emojiID: string | null;
|
|
165
|
+
/** The name (or unicode characters) of the emoji to use on the welcome channel. */
|
|
166
|
+
emojiName: string | null;
|
|
167
|
+
}
|
|
168
|
+
export interface RawSticker {
|
|
169
|
+
/** @deprecated */
|
|
170
|
+
asset?: "";
|
|
171
|
+
available?: boolean;
|
|
172
|
+
description: string | null;
|
|
173
|
+
format_type: StickerFormatTypes;
|
|
174
|
+
guild_id?: string;
|
|
175
|
+
id: string;
|
|
176
|
+
name: string;
|
|
177
|
+
pack_id?: string;
|
|
178
|
+
sort_value?: number;
|
|
179
|
+
tags: string;
|
|
180
|
+
type: StickerTypes;
|
|
181
|
+
user?: Types.Users.RawUser;
|
|
182
|
+
}
|
|
183
|
+
export interface Sticker {
|
|
184
|
+
/** @deprecated */
|
|
185
|
+
asset?: "";
|
|
186
|
+
available?: boolean;
|
|
187
|
+
description: string | null;
|
|
188
|
+
formatType: StickerFormatTypes;
|
|
189
|
+
guildID?: string;
|
|
190
|
+
id: string;
|
|
191
|
+
name: string;
|
|
192
|
+
packID?: string;
|
|
193
|
+
sortValue?: number;
|
|
194
|
+
tags: string;
|
|
195
|
+
type: StickerTypes;
|
|
196
|
+
user?: User;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export interface RawMember {
|
|
200
|
+
avatar?: string | null;
|
|
201
|
+
avatar_decoration_data?: Types.Users.RawAvatarDecorationData | null;
|
|
202
|
+
banner?: string | null;
|
|
203
|
+
communication_disabled_until?: string | null;
|
|
204
|
+
deaf: boolean;
|
|
205
|
+
/** undocumented */
|
|
206
|
+
flags?: number;
|
|
207
|
+
/** undocumented */
|
|
208
|
+
is_pending?: boolean;
|
|
209
|
+
// this is nullable over gateway
|
|
210
|
+
joined_at: string | null;
|
|
211
|
+
mute: boolean;
|
|
212
|
+
nick?: string | null;
|
|
213
|
+
pending?: boolean;
|
|
214
|
+
permissions?: string;
|
|
215
|
+
premium_since?: string | null;
|
|
216
|
+
roles: Array<string>;
|
|
217
|
+
user?: Types.Users.RawUser;
|
|
218
|
+
}
|
|
219
|
+
export interface RESTMember extends Required<Omit<RawMember, "permissions" | "joined_at">> { joined_at: string; }
|
|
220
|
+
export interface InteractionMember extends Required<RawMember> {}
|
|
221
|
+
|
|
222
|
+
export interface RawIntegration {
|
|
223
|
+
account: IntegrationAccount;
|
|
224
|
+
application?: RawIntegrationApplication;
|
|
225
|
+
enable_emoticons?: boolean;
|
|
226
|
+
enabled?: boolean;
|
|
227
|
+
expire_behavior?: IntegrationExpireBehaviors;
|
|
228
|
+
expire_grace_period?: number;
|
|
229
|
+
id: string;
|
|
230
|
+
name: string;
|
|
231
|
+
revoked?: boolean;
|
|
232
|
+
role_id?: string;
|
|
233
|
+
scopes?: Array<string>;
|
|
234
|
+
subscriber_count?: number;
|
|
235
|
+
synced_at?: string;
|
|
236
|
+
syncing?: boolean;
|
|
237
|
+
type: IntegrationType;
|
|
238
|
+
user?: Types.Users.RawUser;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export interface IntegrationAccount {
|
|
242
|
+
id: string;
|
|
243
|
+
name: string;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
export interface RawIntegrationApplication {
|
|
247
|
+
bot?: Types.Users.RawUser;
|
|
248
|
+
description: string;
|
|
249
|
+
icon: string | null;
|
|
250
|
+
id: string;
|
|
251
|
+
name: string;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export interface PartialEmoji extends Pick<Types.Misc.Emoji, "id" | "name" | "animated"> {}
|
|
255
|
+
export interface NullablePartialEmoji {
|
|
256
|
+
id?: string | null;
|
|
257
|
+
name?: string | null;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export interface CreateGuildEmojiOptions {
|
|
261
|
+
/** The image (buffer, or full data url). */
|
|
262
|
+
image: Buffer | string;
|
|
263
|
+
/** The name of the emoji. */
|
|
264
|
+
name: string;
|
|
265
|
+
/** The reason for creating the emoji. */
|
|
266
|
+
reason?: string;
|
|
267
|
+
/** The roles to restrict the emoji to. */
|
|
268
|
+
roles?: Array<string>;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export interface EditGuildEmojiOptions {
|
|
272
|
+
/** The name of the emoji. */
|
|
273
|
+
name?: string;
|
|
274
|
+
/** The reason for creating the emoji. */
|
|
275
|
+
reason?: string;
|
|
276
|
+
/** The roles to restrict the emoji to. */
|
|
277
|
+
roles?: Array<string> | null;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
export interface RawGuildPreview {
|
|
281
|
+
approximate_member_count: number;
|
|
282
|
+
approximate_presence_count: number;
|
|
283
|
+
description: string | null;
|
|
284
|
+
discovery_splash: string | null;
|
|
285
|
+
emojis: Array<RawGuildEmoji>;
|
|
286
|
+
features: Array<GuildFeature>;
|
|
287
|
+
icon: string | null;
|
|
288
|
+
id: string;
|
|
289
|
+
name: string;
|
|
290
|
+
splash: string | null;
|
|
291
|
+
stickers: Array<RawSticker>;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
export interface EditGuildOptions {
|
|
295
|
+
/** The ID of the AFK voice channel. `null` to reset. */
|
|
296
|
+
afkChannelID?: string | null;
|
|
297
|
+
/** The AFK timeout in seconds. */
|
|
298
|
+
afkTimeout?: number;
|
|
299
|
+
/** The banner of the guild (buffer, or full data url). `null` to reset. */
|
|
300
|
+
banner?: Buffer | string | null;
|
|
301
|
+
/** The default message notification level. */
|
|
302
|
+
defaultMessageNotifications?: DefaultMessageNotificationLevels;
|
|
303
|
+
/** The description of the guild. `null` to reset. */
|
|
304
|
+
description?: string | null;
|
|
305
|
+
/** The discovery splash of the guild (buffer, or full data url). `null` to reset. */
|
|
306
|
+
discoverySplash?: Buffer | string | null;
|
|
307
|
+
/** The explicit content filter level. */
|
|
308
|
+
explicitContentFilter?: ExplicitContentFilterLevels;
|
|
309
|
+
/** The features of the guild. Only some can be added or removed. */
|
|
310
|
+
features?: Array<GuildFeature>;
|
|
311
|
+
/** The icon of the guild (buffer or full data url). `null` to reset. */
|
|
312
|
+
icon?: Buffer | string | null;
|
|
313
|
+
/** The name of the guild. */
|
|
314
|
+
name?: string;
|
|
315
|
+
/** The preferred [locale](https://discord.com/developers/docs/reference#locales) of the guild. `null` to reset. */
|
|
316
|
+
preferredLocale?: string | null;
|
|
317
|
+
/** If the premium progress bar is enabled. */
|
|
318
|
+
premiumProgressBarEnabled?: boolean;
|
|
319
|
+
/** The ID of the public updates channel. `null` to reset, or `1` to create a new channel. */
|
|
320
|
+
publicUpdatesChannelID?: string | null;
|
|
321
|
+
/** The reason for editing the guild. */
|
|
322
|
+
reason?: string;
|
|
323
|
+
/** @deprecated The region of the guild. */
|
|
324
|
+
region?: string | null;
|
|
325
|
+
/** The ID of the rules channel. `null` to reset, or `1` to create a new channel. */
|
|
326
|
+
rulesChannelID?: string | null;
|
|
327
|
+
/** The ID of the channel where safety alert are received. `null` to reset, or `1` to create a new channel. */
|
|
328
|
+
safetyAlertsChannelID?: string | null;
|
|
329
|
+
/** The splash of the guild (buffer, or full data url). `null` to reset. */
|
|
330
|
+
splash?: Buffer | string | null;
|
|
331
|
+
/** The system channel flags. */
|
|
332
|
+
systemChannelFlags?: number;
|
|
333
|
+
/** The ID of the system channel. `null` to reset. */
|
|
334
|
+
systemChannelID?: string | null;
|
|
335
|
+
/** The verification level of the guild. */
|
|
336
|
+
verificationLevel?: VerificationLevels;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
export interface CreateChannelOptions<T extends Types.Channels.GuildChannelsWithoutThreads = Types.Channels.GuildChannelsWithoutThreads> {
|
|
340
|
+
/** [Forum] The {@link Types/Channels.Types.Channels.ForumTag | tags} available in the channel. */
|
|
341
|
+
availableTags?: Array<Omit<Types.Channels.ForumTag, "id">> | null;
|
|
342
|
+
/** [Stage, Voice] The bitrate of the channel. Minimum 8000. */
|
|
343
|
+
bitrate?: number | null;
|
|
344
|
+
/** [Announcement, Text] The default auto archive duration for the channel. */
|
|
345
|
+
defaultAutoArchiveDuration?: ThreadAutoArchiveDuration | null;
|
|
346
|
+
/** [Forum] The default forum layout used to display threads. */
|
|
347
|
+
defaultForumLayout?: ForumLayoutTypes;
|
|
348
|
+
/** [Forum] The default reaction emoji for threads. */
|
|
349
|
+
defaultReactionEmoji?: Types.Channels.ForumEmoji | null;
|
|
350
|
+
/** [Forum] The default sort order mode used to sort forum threads. */
|
|
351
|
+
defaultSortOrder?: SortOrderTypes | null;
|
|
352
|
+
/** The name of the channel. */
|
|
353
|
+
name: string;
|
|
354
|
+
/** [Announcement, Text, Voice] If the channel is age restricted. */
|
|
355
|
+
nsfw?: boolean | null;
|
|
356
|
+
/** The ID of the category to put this channel in. */
|
|
357
|
+
parentID?: string | null;
|
|
358
|
+
/** The permission overwrites to apply to the channel. */
|
|
359
|
+
permissionOverwrites?: Array<Types.Channels.OverwriteOptions> | null;
|
|
360
|
+
/** The position of the channel. */
|
|
361
|
+
position?: number | null;
|
|
362
|
+
/** [Forum, Text] The seconds between sending messages for users. Between 0 and 21600. */
|
|
363
|
+
rateLimitPerUser?: number | null;
|
|
364
|
+
/** The reason for creating the channel. */
|
|
365
|
+
reason?: string;
|
|
366
|
+
/** [Stage, Voice] The voice region for the channel. */
|
|
367
|
+
rtcRegion?: string | null;
|
|
368
|
+
/** [Announcement, Forum, Text, Voice] The topic of the channel. In forum channels, this is the `Guidelines` section. */
|
|
369
|
+
topic?: string | null;
|
|
370
|
+
/** The [type](https://discord.com/developers/docs/resources/channel#channel-object-channel-types) of channel to create. */
|
|
371
|
+
type: T;
|
|
372
|
+
/** [Voice] The maximum number of users that can be in the channel. Between 0 and 99. */
|
|
373
|
+
userLimit?: number | null;
|
|
374
|
+
/** [Voice] The [video quality mode](https://discord.com/developers/docs/resources/channel#channel-object-video-quality-modes) for the channel. */
|
|
375
|
+
videoQualityMode?: VideoQualityModes | null;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
export interface CreateTextChannelOptions extends Omit<CreateChannelOptions<ChannelTypes.GUILD_TEXT>, "rtcRegion" | "userLimit" | "videoQualityMode"> {}
|
|
379
|
+
export interface CreateVoiceChannelOptions extends Omit<CreateChannelOptions<ChannelTypes.GUILD_VOICE>, "defaultAutoArchiveDuration" | "topic"> {}
|
|
380
|
+
export interface CreateCategoryChannelOptions extends Omit<CreateChannelOptions<ChannelTypes.GUILD_CATEGORY>, "defaultAutoArchiveDuration" | "nsfw" | "parentID" | "rtcRegion" | "topic" | "userLimit" | "videoQualityMode"> {}
|
|
381
|
+
export interface CreateAnnouncementChannelOptions extends Omit<CreateChannelOptions<ChannelTypes.GUILD_ANNOUNCEMENT>, "rtcRegion" | "userLimit" | "videoQualityMode"> {}
|
|
382
|
+
export interface CreateStageChannelOptions extends Omit<CreateChannelOptions<ChannelTypes.GUILD_STAGE_VOICE>, "defaultAutoArchiveDuration" | "nsfw" | "rtcRegion" | "topic" | "userLimit" | "videoQualityMode"> {}
|
|
383
|
+
|
|
384
|
+
export interface CreateRoleOptions {
|
|
385
|
+
/**
|
|
386
|
+
* The color of the role.
|
|
387
|
+
* @deprecated Use {@link CreateRoleOptions#colors | CreateRoleOptions#colors.primaryColor} instead.
|
|
388
|
+
*/
|
|
389
|
+
color?: number;
|
|
390
|
+
/** The colors of the role. */
|
|
391
|
+
colors?: Partial<RoleColors>;
|
|
392
|
+
/** If the role should be hoisted. */
|
|
393
|
+
hoist?: boolean;
|
|
394
|
+
/** The icon for the role (buffer, or full data url). Requires the `ROLE_ICONS` feature. */
|
|
395
|
+
icon?: Buffer | string | null;
|
|
396
|
+
/** If the role should be mentionable. */
|
|
397
|
+
mentionable?: boolean;
|
|
398
|
+
/** The name of the role. */
|
|
399
|
+
name?: string;
|
|
400
|
+
/** The permissions of the role. */
|
|
401
|
+
permissions?: string;
|
|
402
|
+
/** The reason for creating the role. */
|
|
403
|
+
reason?: string;
|
|
404
|
+
/** The unicode emoji for the role. Requires the `ROLE_ICONS` feature. */
|
|
405
|
+
unicodeEmoji?: string | null;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
export interface ModifyChannelPositionsEntry {
|
|
409
|
+
/** The ID of the channel to move. */
|
|
410
|
+
id: string;
|
|
411
|
+
/** If the permissions should be synced with the category. */
|
|
412
|
+
lockPermissions?: boolean | null;
|
|
413
|
+
/** The ID of the new parent category. */
|
|
414
|
+
parentID?: string | null;
|
|
415
|
+
/** The position to move the channel to. */
|
|
416
|
+
position?: number | null;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
export interface GetActiveThreadsResponse {
|
|
420
|
+
members: Array<Types.Channels.ThreadMember>;
|
|
421
|
+
threads: Array<Types.Channels.AnyThreadChannel>;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
export interface GetMembersOptions {
|
|
425
|
+
/** The last id on the previous page, for pagination. */
|
|
426
|
+
after?: string;
|
|
427
|
+
/** The maximum number of members to get. */
|
|
428
|
+
limit?: number;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
export interface SearchMembersOptions {
|
|
432
|
+
/** The maximum number of entries to get. */
|
|
433
|
+
limit?: number;
|
|
434
|
+
/** The query to search for. */
|
|
435
|
+
query: string;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
export interface AddMemberOptions {
|
|
439
|
+
/** The access token of the user to add. */
|
|
440
|
+
accessToken: string;
|
|
441
|
+
/** If the user should be deafened or not. */
|
|
442
|
+
deaf?: boolean;
|
|
443
|
+
/** If the user should be muted or not. */
|
|
444
|
+
mute?: boolean;
|
|
445
|
+
/** The nickname of the user to add. */
|
|
446
|
+
nick?: string;
|
|
447
|
+
/** The IDs of the roles to add to the user. This bypasses membership screening and verification levels. */
|
|
448
|
+
roles?: Array<string>;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
export interface EditMemberOptions {
|
|
452
|
+
/** The ID of the channel to move the member to. `null` to disconnect. */
|
|
453
|
+
channelID?: string | null;
|
|
454
|
+
/** An ISO8601 timestamp to time out until. `null` to reset. */
|
|
455
|
+
communicationDisabledUntil?: string | null;
|
|
456
|
+
/** If the member should be deafened. */
|
|
457
|
+
deaf?: boolean;
|
|
458
|
+
/** The member's [flags](https://discord.com/developers/docs/resources/guild#guild-member-object-flags). */
|
|
459
|
+
flags?: number;
|
|
460
|
+
/** If the member should be muted. */
|
|
461
|
+
mute?: boolean;
|
|
462
|
+
/** The new nickname of the member. `null` to reset. */
|
|
463
|
+
nick?: string | null;
|
|
464
|
+
/** The reason for editing the member. */
|
|
465
|
+
reason?: string;
|
|
466
|
+
/** The new roles of the member. */
|
|
467
|
+
roles?: Array<string>;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
export interface EditCurrentMemberOptions extends Pick<EditMemberOptions, "nick" | "reason"> {
|
|
471
|
+
/** The new avatar (buffer, or full data url). `null` to reset. */
|
|
472
|
+
avatar?: Buffer | string | null;
|
|
473
|
+
/** The new banner (buffer, or full data url). `null` to reset. */
|
|
474
|
+
banner?: Buffer | string | null;
|
|
475
|
+
/** The new bio. `null` to reset. */
|
|
476
|
+
bio?: string | null;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
export interface EditOnboardingOptions {
|
|
480
|
+
/** Channel IDs that members get opted into automatically. */
|
|
481
|
+
defaultChannelIDs?: Array<string>;
|
|
482
|
+
/** If onboarding is enabled. */
|
|
483
|
+
enabled?: boolean;
|
|
484
|
+
/** The mode for onboarding, used to determine requirements. */
|
|
485
|
+
mode?: OnboardingModes;
|
|
486
|
+
/** The prompts shown during onboarding. */
|
|
487
|
+
prompts?: Array<OnboardingPrompt>;
|
|
488
|
+
/** The reason for editing the onboarding configuration. */
|
|
489
|
+
reason?: string;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
export interface GetBansOptions {
|
|
493
|
+
/** The ID of the user to get bans after. */
|
|
494
|
+
after?: string;
|
|
495
|
+
/** The ID of the user to get bans before. */
|
|
496
|
+
before?: string;
|
|
497
|
+
/** The maximum number of bans to get. Defaults to 1000. Use Infinity if you wish to get as many bans as possible. */
|
|
498
|
+
limit?: number;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
export interface RawBan {
|
|
502
|
+
reason: string | null;
|
|
503
|
+
user: Types.Users.RawUser;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
export interface Ban {
|
|
507
|
+
reason: string | null;
|
|
508
|
+
user: User;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
export interface CreateBanOptions {
|
|
512
|
+
/** The number of days to delete messages from. Technically DEPRECATED. This is internally converted in to `deleteMessageSeconds`. */
|
|
513
|
+
deleteMessageDays?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
514
|
+
/** The number of seconds to delete messages from. Takes precedence over `deleteMessageDays`. */
|
|
515
|
+
deleteMessageSeconds?: number;
|
|
516
|
+
/** The reason for creating the ban. */
|
|
517
|
+
reason?: string;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
export interface EditRolePositionsEntry {
|
|
521
|
+
/** The ID of the role to move. */
|
|
522
|
+
id: string;
|
|
523
|
+
/** The position to move the role to. */
|
|
524
|
+
position?: number | null;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
export interface EditRoleOptions extends CreateRoleOptions {}
|
|
528
|
+
|
|
529
|
+
export interface GetPruneCountOptions {
|
|
530
|
+
/** The number of days to prune. */
|
|
531
|
+
days?: number;
|
|
532
|
+
/** The roles to include. */
|
|
533
|
+
includeRoles?: Array<string>;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
export interface BeginPruneOptions extends GetPruneCountOptions {
|
|
537
|
+
/** If the number of members to prune should be computed. If false, the return will be `null`. */
|
|
538
|
+
computePruneCount?: boolean;
|
|
539
|
+
/** The reason for the prune. */
|
|
540
|
+
reason?: string;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
export interface RawWidgetSettings {
|
|
544
|
+
channel_id: string;
|
|
545
|
+
enabled: boolean;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
export interface WidgetSettings {
|
|
549
|
+
/** The ID of the channel the widget should lead to. */
|
|
550
|
+
channelID: string;
|
|
551
|
+
/** If the widget is enabled. */
|
|
552
|
+
enabled: boolean;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
export interface GetVanityURLResponse {
|
|
556
|
+
code: string | null;
|
|
557
|
+
uses: number;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
export interface RawWidget {
|
|
561
|
+
channels: Array<Required<Pick<Types.Channels.RawChannel, "id" | "name" | "position">>>;
|
|
562
|
+
id: string;
|
|
563
|
+
instant_invite: string | null;
|
|
564
|
+
members: Array<RawWidgetUser>;
|
|
565
|
+
name: string;
|
|
566
|
+
presence_count: number;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
export interface Widget {
|
|
570
|
+
channels: Array<Required<Pick<Types.Channels.RawChannel, "id" | "name" | "position">>>;
|
|
571
|
+
id: string;
|
|
572
|
+
instantInvite: string | null;
|
|
573
|
+
members: Array<WidgetUser>;
|
|
574
|
+
name: string;
|
|
575
|
+
presenceCount: number;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
export interface RawWidgetUser {
|
|
579
|
+
activity?: {
|
|
580
|
+
name: string;
|
|
581
|
+
};
|
|
582
|
+
avatar: null;
|
|
583
|
+
avatar_url: string;
|
|
584
|
+
discriminator: string;
|
|
585
|
+
id: string;
|
|
586
|
+
status: "online" | "idle" | "dnd";
|
|
587
|
+
username: string;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
export interface WidgetUser {
|
|
591
|
+
activity?: {
|
|
592
|
+
name: string;
|
|
593
|
+
};
|
|
594
|
+
avatar: null;
|
|
595
|
+
avatarURL: string;
|
|
596
|
+
/** Always "0000" */
|
|
597
|
+
discriminator: string;
|
|
598
|
+
id: string;
|
|
599
|
+
status: "online" | "idle" | "dnd";
|
|
600
|
+
/** @deprecated Use `username` */
|
|
601
|
+
tag: string;
|
|
602
|
+
username: string;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
export type WidgetImageStyle = "shield" | "banner1" | "banner2" | "banner3" | "banner4";
|
|
606
|
+
|
|
607
|
+
export interface EditWelcomeScreenOptions extends WelcomeScreen {
|
|
608
|
+
/** Whether the welcome screen is enabled. */
|
|
609
|
+
enabled?: boolean;
|
|
610
|
+
/** The reason for editing the welcome screen. */
|
|
611
|
+
reason?: string;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
export interface EditUserVoiceStateOptions {
|
|
615
|
+
/** The ID of the stage channel the member is in. */
|
|
616
|
+
channelID: string;
|
|
617
|
+
/** If the user should be suppressed. */
|
|
618
|
+
suppress?: boolean;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
export interface EditCurrentUserVoiceStateOptions extends Omit<EditUserVoiceStateOptions, "channelID"> {
|
|
622
|
+
/** The ID of the stage channel the member is in. */
|
|
623
|
+
channelID?: string;
|
|
624
|
+
/** The timestamp of when the member should be able to speak. */
|
|
625
|
+
requestToSpeakTimestamp?: string | null;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
export interface RawUnavailableGuild {
|
|
629
|
+
id: string;
|
|
630
|
+
unavailable: true;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
export type PossiblyUncachedIntegration = Integration | { applicationID?: string; id: string; };
|
|
634
|
+
|
|
635
|
+
export interface RawStageInstance {
|
|
636
|
+
channel_id: string;
|
|
637
|
+
/** @deprecated */
|
|
638
|
+
discoverable_disabled: boolean;
|
|
639
|
+
guild_id: string;
|
|
640
|
+
guild_scheduled_event_id: string | null;
|
|
641
|
+
id: string;
|
|
642
|
+
privacy_level: StageInstancePrivacyLevels;
|
|
643
|
+
topic: string;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
export interface CreateStageInstanceOptions {
|
|
647
|
+
/** The privacy level of the stage instance. */
|
|
648
|
+
privacyLevel?: StageInstancePrivacyLevels;
|
|
649
|
+
/** The reason for creating the stage instance. */
|
|
650
|
+
reason?: string;
|
|
651
|
+
/** Whether to notify @everyone that a stage instance has started. */
|
|
652
|
+
sendStartNotification?: boolean;
|
|
653
|
+
/** The topic of the stage instance. */
|
|
654
|
+
topic: string;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
export interface EditStageInstanceOptions extends Pick<CreateStageInstanceOptions, "topic" | "privacyLevel"> {
|
|
658
|
+
/** The reason for editing the stage instance. */
|
|
659
|
+
reason?: string;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
export interface CreateSoundboardSoundOptions {
|
|
663
|
+
/** The ID of the emoji of the soundboard sound. */
|
|
664
|
+
emojiID?: string;
|
|
665
|
+
/** The name of the emoji of the soundboard sound. */
|
|
666
|
+
emojiName?: string;
|
|
667
|
+
/** The name of the soundboard sound. */
|
|
668
|
+
name: string;
|
|
669
|
+
/** The reason for creating the soundboard sound. */
|
|
670
|
+
reason?: string;
|
|
671
|
+
/** The mp3 or ogg sound data. */
|
|
672
|
+
sound: Buffer | string;
|
|
673
|
+
/** The volume of the soundboard sound. */
|
|
674
|
+
volume?: number;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
export interface EditSoundboardSoundOptions {
|
|
678
|
+
/** The ID of the emoji of the soundboard sound. */
|
|
679
|
+
emojiID?: string;
|
|
680
|
+
/** The name of the emoji of the soundboard sound. */
|
|
681
|
+
emojiName?: string;
|
|
682
|
+
/** The name of the soundboard sound. */
|
|
683
|
+
name?: string;
|
|
684
|
+
/** The reason for editing the soundboard sound. */
|
|
685
|
+
reason?: string;
|
|
686
|
+
/** The volume of the soundboard sound. */
|
|
687
|
+
volume?: number;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
export interface CreateStickerOptions {
|
|
691
|
+
/** The description of the sticker. */
|
|
692
|
+
description: string;
|
|
693
|
+
/** The file contents of the sticker. PNG, APNG, or LOTTIE (only `VERIFIED` & `PARTNERED` servers can use lottie). */
|
|
694
|
+
file: Types.RequestHandler.File;
|
|
695
|
+
/** The name of the sticker. */
|
|
696
|
+
name: string;
|
|
697
|
+
/** The reason for creating the sticker. */
|
|
698
|
+
reason?: string;
|
|
699
|
+
/** The autocomplete/suggestions tags for the sticker. */
|
|
700
|
+
tags: string;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
export interface EditStickerOptions {
|
|
704
|
+
/** The description of the sticker. */
|
|
705
|
+
description?: string | null;
|
|
706
|
+
/** The name of the sticker. */
|
|
707
|
+
name?: string;
|
|
708
|
+
/** The reason for editing the sticker. */
|
|
709
|
+
reason?: string;
|
|
710
|
+
/** The autocomplete/suggestions tags for the sticker. */
|
|
711
|
+
tags?: string;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
export interface RawStickerPack {
|
|
715
|
+
banner_asset_id?: string;
|
|
716
|
+
cover_sticker_id?: string;
|
|
717
|
+
description: string;
|
|
718
|
+
id: string;
|
|
719
|
+
name: string;
|
|
720
|
+
sku_id: string;
|
|
721
|
+
stickers: Array<RawSticker>;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
export interface StickerPack {
|
|
725
|
+
bannerAssetID?: string;
|
|
726
|
+
coverStickerID?: string;
|
|
727
|
+
description: string;
|
|
728
|
+
id: string;
|
|
729
|
+
name: string;
|
|
730
|
+
skuID: string;
|
|
731
|
+
stickers: Array<Sticker>;
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
export interface RawOAuthGuild {
|
|
735
|
+
approximate_member_count?: number;
|
|
736
|
+
approximate_presence_count?: number;
|
|
737
|
+
banner: string | null;
|
|
738
|
+
features: Array<GuildFeature>;
|
|
739
|
+
icon: string | null;
|
|
740
|
+
id: string;
|
|
741
|
+
name: string;
|
|
742
|
+
owner: boolean;
|
|
743
|
+
permissions: string;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
export interface PresenceActivity extends Omit<Types.Gateway.Activity, "application_id" | "assets" | "created_at"> {
|
|
747
|
+
applicationID?: string;
|
|
748
|
+
assets?: Partial<Record<"largeImage" | "largeText" | "smallImage" | "smallText", string>>;
|
|
749
|
+
createdAt: number;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
export interface Presence extends Omit<Types.Gateway.PresenceUpdate, "user" | "guild_id" | "client_status" | "activities"> {
|
|
753
|
+
activities?: Array<PresenceActivity>;
|
|
754
|
+
clientStatus: Types.Gateway.ClientStatus;
|
|
755
|
+
guildID: string;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
export interface RawOnboardingPromptOption {
|
|
759
|
+
channel_ids: Array<string>;
|
|
760
|
+
description: string | null;
|
|
761
|
+
emoji: PartialEmoji;
|
|
762
|
+
id: string;
|
|
763
|
+
role_ids: Array<string>;
|
|
764
|
+
title: string;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
export interface RawOnboardingPrompt {
|
|
768
|
+
id: string;
|
|
769
|
+
in_onboarding: boolean;
|
|
770
|
+
options: Array<RawOnboardingPromptOption>;
|
|
771
|
+
required: boolean;
|
|
772
|
+
single_select: boolean;
|
|
773
|
+
title: string;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
export interface RawOnboarding {
|
|
777
|
+
default_channel_ids: Array<string>;
|
|
778
|
+
enabled: boolean;
|
|
779
|
+
guild_id: string;
|
|
780
|
+
mode: OnboardingModes;
|
|
781
|
+
prompts: Array<RawOnboardingPrompt>;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
export interface OnboardingPromptOption {
|
|
785
|
+
channelIDs: Array<string>;
|
|
786
|
+
description: string | null;
|
|
787
|
+
emoji: PartialEmoji;
|
|
788
|
+
id: string;
|
|
789
|
+
roleIDs: Array<string>;
|
|
790
|
+
title: string;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
export interface OnboardingPrompt {
|
|
794
|
+
id: string;
|
|
795
|
+
inOnboarding: boolean;
|
|
796
|
+
options: Array<OnboardingPromptOption>;
|
|
797
|
+
required: boolean;
|
|
798
|
+
singleSelect: boolean;
|
|
799
|
+
title: string;
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
export interface Onboarding {
|
|
803
|
+
defaultChannelIDs: Array<string>;
|
|
804
|
+
enabled: boolean;
|
|
805
|
+
guildID: string;
|
|
806
|
+
mode: OnboardingModes;
|
|
807
|
+
prompts: Array<OnboardingPrompt>;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
export interface RawInventorySettings {
|
|
811
|
+
is_emoji_pack_collectible: boolean;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
export interface InventorySettings {
|
|
815
|
+
isEmojiPackCollectible: boolean;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
export interface EditIncidentActionsOptions {
|
|
819
|
+
/** When disabled direct messages will expire (up to 24 hours in the future) */
|
|
820
|
+
dmsDisabledUntil?: string | null;
|
|
821
|
+
/** When disabled invites will expire (up to 24 hours in the future). */
|
|
822
|
+
invitesDisabledUntil?: string | null;
|
|
823
|
+
/** The reason for editing the incident actions. */
|
|
824
|
+
reason?: string;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
export interface RawIncidentActions {
|
|
828
|
+
dms_disabled_until: string | null;
|
|
829
|
+
invites_disabled_until: string | null;
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
export interface IncidentActions {
|
|
833
|
+
/** When disabled direct messages will expire (up to 24 hours in the future) */
|
|
834
|
+
dmsDisabledUntil: string | null;
|
|
835
|
+
/** When disabled invites will expire (up to 24 hours in the future). */
|
|
836
|
+
invitesDisabledUntil: string | null;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
export interface BulkBanOptions {
|
|
840
|
+
/** Number of seconds to deleted messages for, between 0 and 604800 (7 days). */
|
|
841
|
+
deleteMessageSeconds?: number;
|
|
842
|
+
reason?: string;
|
|
843
|
+
/** list of user ids to ban (max 200) */
|
|
844
|
+
userIDs: Array<string>;
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
export interface RawBulkBanResponse {
|
|
848
|
+
banned_users: Array<string>;
|
|
849
|
+
failed_users: Array<string>;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
export interface BulkBanResponse {
|
|
853
|
+
/** The users that were successfully banned. */
|
|
854
|
+
bannedUsers: Array<string>;
|
|
855
|
+
/** The users that could not be banned. */
|
|
856
|
+
failedUsers: Array<string>;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
export interface MemberSearchOptions {
|
|
860
|
+
/** Get members after this member */
|
|
861
|
+
after?: MemberSearchPaginationFilter;
|
|
862
|
+
/** The filter criteria to match against members using AND logic */
|
|
863
|
+
andQuery?: MemberSearchFilter;
|
|
864
|
+
/** Get members before this member */
|
|
865
|
+
before?: MemberSearchPaginationFilter;
|
|
866
|
+
/** Max number of members to return (1-1000, default 25) */
|
|
867
|
+
limit?: number;
|
|
868
|
+
/** The filter criteria to match against members using OR logic */
|
|
869
|
+
orQuery?: MemberSearchFilter;
|
|
870
|
+
/** The {@link Constants~MemberSearchSortType | sorting algorithm to use} (default `JOINED_AT_DESC`) */
|
|
871
|
+
sort?: MemberSearchSortType;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
export interface MemberSearchFilter {
|
|
875
|
+
/** Whether the member left and rejoined the guild */
|
|
876
|
+
didRejoin?: boolean;
|
|
877
|
+
/** When the user joined the guild */
|
|
878
|
+
guildJoinedAt?: MemberSearchRangeQuery<string>;
|
|
879
|
+
/** Whether the member has not yet passed the guild's member verification requirements */
|
|
880
|
+
isPending?: boolean;
|
|
881
|
+
/** How the user joined the guild */
|
|
882
|
+
joinSourceType?: MemberSearchOrQuery<MemberJoinSourceType>;
|
|
883
|
+
/** IDs of roles to match members against */
|
|
884
|
+
roleIDs?: MemberSearchAndOrQuery<string>;
|
|
885
|
+
/** Safety signals to match members against */
|
|
886
|
+
safetySignals?: MemberSearchSafetySignals;
|
|
887
|
+
/** The invite code or vanity used to join the guild */
|
|
888
|
+
sourceInviteCode?: MemberSearchOrQuery<string>;
|
|
889
|
+
/** Query to match member IDs against */
|
|
890
|
+
userID?: MemberSearchOrQueryRange<string>;
|
|
891
|
+
/** Query to match display name(s), username(s), and nickname(s) against */
|
|
892
|
+
usernames?: MemberSearchOrQuery<string>;
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
export interface MemberSearchSafetySignals {
|
|
896
|
+
/** Whether the member has been indefinitely quarantined by an AutoMod Rule for their username, display name, or nickname */
|
|
897
|
+
automodQuarantinedUsername?: boolean;
|
|
898
|
+
/** When the member's timeout will expire */
|
|
899
|
+
communicationDisabledUntil?: MemberSearchRangeQuery<number>;
|
|
900
|
+
/** Whether unusual account activity is detected */
|
|
901
|
+
unusualAccountActivity?: boolean;
|
|
902
|
+
/** When the member's unusual DM activity flag will expire */
|
|
903
|
+
unusualDmActivityUntil?: MemberSearchRangeQuery<number>;
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
export interface MemberSearchQuery<T> {
|
|
907
|
+
/** array of snowflakes, strings, or integers | The values to match against using AND logic (1-100 characters, max 10) */
|
|
908
|
+
andQuery?: Array<T>;
|
|
909
|
+
/** array of snowflakes, strings, or integers | The values to match against using OR logic (1-100 characters, max 10) */
|
|
910
|
+
orQuery?: Array<T>;
|
|
911
|
+
/** The range of values to match against */
|
|
912
|
+
range?: MemberSearchQueryRange<T>;
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
export interface MemberSearchOrQuery<T> extends Pick<MemberSearchQuery<T>, "orQuery"> {}
|
|
916
|
+
export interface MemberSearchAndOrQuery<T> extends Pick<MemberSearchQuery<T>, "andQuery" | "orQuery"> {}
|
|
917
|
+
export interface MemberSearchOrQueryRange<T> extends Pick<MemberSearchQuery<T>, "orQuery" | "range"> {}
|
|
918
|
+
export interface MemberSearchRangeQuery<T> extends Pick<MemberSearchQuery<T>, "range"> {}
|
|
919
|
+
|
|
920
|
+
export interface MemberSearchQueryRange<T> {
|
|
921
|
+
/** Inclusive lower bound value to match */
|
|
922
|
+
gte?: T;
|
|
923
|
+
/** | lte? | snowflake or integer | Inclusive upper bound value to match | */
|
|
924
|
+
lte?: T;
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
export interface MemberSearchPaginationFilter {
|
|
928
|
+
/** When the user to paginate past joined the guild */
|
|
929
|
+
guildJoinedAt: number;
|
|
930
|
+
/** The ID of the user to paginate past */
|
|
931
|
+
userID: string;
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
export interface RawSupplementalGuildMember {
|
|
935
|
+
integration_type?: IntegrationType | null;
|
|
936
|
+
inviter_id: string | null;
|
|
937
|
+
join_source_type: MemberJoinSourceType;
|
|
938
|
+
member: RESTMember;
|
|
939
|
+
source_invite_code: string | null;
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
export interface SupplementalGuildMember {
|
|
943
|
+
/** The type of integration that added the user to the guild, if applicable */
|
|
944
|
+
integrationType?: IntegrationType | null;
|
|
945
|
+
/** The ID of the user who invited the user to the guild, if applicable */
|
|
946
|
+
inviterID: string | null;
|
|
947
|
+
/** How the user joined the guild */
|
|
948
|
+
joinSourceType: MemberJoinSourceType;
|
|
949
|
+
/** The associated guild member */
|
|
950
|
+
member: Member;
|
|
951
|
+
/** The invite code or vanity used to join the guild, if applicable */
|
|
952
|
+
sourceInviteCode: string | null;
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
export interface RawMemberSearchResults {
|
|
956
|
+
guild_id: string;
|
|
957
|
+
members: Array<RawSupplementalGuildMember>;
|
|
958
|
+
page_result_count: number;
|
|
959
|
+
total_result_count: number;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
export interface MemberSearchResults {
|
|
963
|
+
/** The ID of the guild searched */
|
|
964
|
+
guildID: string;
|
|
965
|
+
/** The resulting members */
|
|
966
|
+
members: Array<SupplementalGuildMember>;
|
|
967
|
+
/** The number of results returned */
|
|
968
|
+
pageResultCount: number;
|
|
969
|
+
/** The total number of results found */
|
|
970
|
+
totalResultCount: number;
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
export interface MemberSearchNotIndexedResult {
|
|
974
|
+
code: JSONErrorCodes.INDEX_NOT_YET_AVAILABLE;
|
|
975
|
+
documents_indexed: number;
|
|
976
|
+
message: string;
|
|
977
|
+
retry_after: number;
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
export interface GuildProfile {
|
|
981
|
+
/** The hash for the server's tag badge. */
|
|
982
|
+
badge: string;
|
|
983
|
+
/** The 1-4 character text seen beside user's names when they adopt a server's tag. */
|
|
984
|
+
tag: string;
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
export interface RawInviteRole extends Pick<RawRole, "id" | "name" | "position" | "color" | "colors" | "icon" | "unicode_emoji" | "permissions"> {}
|