A powerful JavaScript library for interacting with the Discord API
112 matches across 6 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | packages/discord.js/cliff.toml | 0 | # changelog all notable changes to this project will be documented in this file.\n |
| HIGH | packages/ui/cliff.toml | 0 | # changelog all notable changes to this project will be documented in this file.\n |
| HIGH | packages/brokers/cliff.toml | 0 | # changelog all notable changes to this project will be documented in this file.\n |
| HIGH | packages/next/cliff.toml | 0 | # changelog all notable changes to this project will be documented in this file.\n |
| HIGH | packages/collection/cliff.toml | 0 | # changelog all notable changes to this project will be documented in this file.\n |
| HIGH | packages/core/cliff.toml | 0 | # changelog all notable changes to this project will be documented in this file.\n |
| HIGH | packages/proxy/cliff.toml | 0 | # changelog all notable changes to this project will be documented in this file.\n |
| HIGH | packages/structures/cliff.toml | 0 | # changelog all notable changes to this project will be documented in this file.\n |
| HIGH | packages/create-discord-bot/cliff.toml | 0 | # changelog all notable changes to this project will be documented in this file.\n |
| HIGH | packages/util/cliff.toml | 0 | # changelog all notable changes to this project will be documented in this file.\n |
| HIGH | packages/builders/cliff.toml | 0 | # changelog all notable changes to this project will be documented in this file.\n |
| HIGH | packages/formatters/cliff.toml | 0 | # changelog all notable changes to this project will be documented in this file.\n |
| HIGH | packages/voice/cliff.toml | 0 | # changelog all notable changes to this project will be documented in this file.\n |
| HIGH | …/scripts/turbo/generators/templates/default/cliff.toml | 0 | # changelog all notable changes to this project will be documented in this file.\n |
| HIGH | packages/rest/cliff.toml | 0 | # changelog all notable changes to this project will be documented in this file.\n |
| HIGH | packages/ws/cliff.toml | 0 | # changelog all notable changes to this project will be documented in this file.\n |
| HIGH | packages/discord.js/cliff.toml | 0 | {%- macro remote_url() -%} https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }} {%- endmacro -%} {% if |
| HIGH | packages/brokers/cliff.toml | 0 | {%- macro remote_url() -%} https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }} {%- endmacro -%} {% if |
| HIGH | packages/next/cliff.toml | 0 | {%- macro remote_url() -%} https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }} {%- endmacro -%} {% if |
| HIGH | packages/collection/cliff.toml | 0 | {%- macro remote_url() -%} https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }} {%- endmacro -%} {% if |
| HIGH | packages/core/cliff.toml | 0 | {%- macro remote_url() -%} https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }} {%- endmacro -%} {% if |
| HIGH | packages/proxy/cliff.toml | 0 | {%- macro remote_url() -%} https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }} {%- endmacro -%} {% if |
| HIGH | packages/structures/cliff.toml | 0 | {%- macro remote_url() -%} https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }} {%- endmacro -%} {% if |
| HIGH | packages/create-discord-bot/cliff.toml | 0 | {%- macro remote_url() -%} https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }} {%- endmacro -%} {% if |
| HIGH | packages/util/cliff.toml | 0 | {%- macro remote_url() -%} https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }} {%- endmacro -%} {% if |
| HIGH | packages/builders/cliff.toml | 0 | {%- macro remote_url() -%} https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }} {%- endmacro -%} {% if |
| HIGH | packages/formatters/cliff.toml | 0 | {%- macro remote_url() -%} https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }} {%- endmacro -%} {% if |
| HIGH | packages/voice/cliff.toml | 0 | {%- macro remote_url() -%} https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }} {%- endmacro -%} {% if |
| HIGH | …/scripts/turbo/generators/templates/default/cliff.toml | 0 | {%- macro remote_url() -%} https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }} {%- endmacro -%} {% if |
| HIGH | packages/rest/cliff.toml | 0 | {%- macro remote_url() -%} https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }} {%- endmacro -%} {% if |
| HIGH | packages/ws/cliff.toml | 0 | {%- macro remote_url() -%} https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }} {%- endmacro -%} {% if |
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | packages/discord.js/src/structures/Presence.js | 396 | return this.activity.presence.client.rest.cdn.appAsset(this.activity.applicationId, this.smallImage, options); |
| CRITICAL | packages/discord.js/src/structures/Presence.js | 423 | return this.activity.presence.client.rest.cdn.appAsset(this.activity.applicationId, this.largeImage, options); |
| CRITICAL | packages/discord.js/src/structures/ThreadMember.js | 80 | return this.member ?? this.thread.guild.members.cache.get(this.id) ?? null; |
| CRITICAL | …s/discord.js/src/structures/AutocompleteInteraction.js | 74 | return this.guild?.commands.cache.get(id) ?? this.client.application.commands.cache.get(id) ?? null; |
| CRITICAL | …ckages/discord.js/src/structures/CommandInteraction.js | 90 | return this.guild?.commands.cache.get(id) ?? this.client.application.commands.cache.get(id) ?? null; |
| CRITICAL | packages/discord.js/src/structures/GuildMember.js | 376 | return this.guild.members.me.roles.highest.comparePositionTo(this.roles.highest) > 0; |
| CRITICAL | packages/discord.js/src/structures/GuildMember.js | 387 | return this.manageable && this.guild.members.me.permissions.has(PermissionFlagsBits.KickMembers); |
| CRITICAL | packages/discord.js/src/structures/GuildMember.js | 398 | return this.manageable && this.guild.members.me.permissions.has(PermissionFlagsBits.BanMembers); |
| CRITICAL | …ord.js/src/structures/AutoModerationActionExecution.js | 117 | return this.guild.client.users.cache.get(this.userId) ?? null; |
| CRITICAL | packages/discord.js/src/structures/GuildEmoji.js | 64 | return !this.managed && this.guild.members.me.permissions.has(PermissionFlagsBits.ManageGuildExpressions); |
| CRITICAL | packages/discord.js/src/util/Sweepers.js | 130 | const entitlements = this.client.application.entitlements.cache.sweep(filter); |
| CRITICAL | packages/voice/src/VoiceConnection.ts | 757 | return this.state.networking.state.dave.getVerificationCode(userId); |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | packages/discord.js/typings/index.d.ts | 3812 | export function fetchRecommendedShardCount(token: string, options?: FetchRecommendedShardCountOptions): Promise<number>; |
| LOW | packages/discord.js/typings/index.d.ts | 4210 | export abstract class DataManager<Key, Holds, Resolvable> extends BaseManager { |
| LOW | packages/discord.js/src/util/Util.js | 81 | async function fetchRecommendedShardCount( |
| LOW | packages/discord.js/src/util/Components.js | 299 | function extractInteractiveComponents(component) { |
| LOW | packages/discord.js/src/util/Channels.js | 107 | function transformAPIGuildForumTag(tag) { |
| LOW | packages/discord.js/src/util/Channels.js | 147 | function transformAPIGuildDefaultReaction(defaultReaction) { |
| LOW | packages/discord.js/src/util/Channels.js | 162 | function transformGuildDefaultReaction(defaultReaction) { |
| LOW | packages/discord.js/src/managers/DataManager.js | 12 | class DataManager extends BaseManager { |
| LOW | …s/ui/src/lib/components/discord/MessageEmbedAuthor.tsx | 7 | export function DiscordMessageEmbedAuthor({ avatar, url, username }: IDiscordMessageEmbedAuthor) { |
| LOW | …s/ui/src/lib/components/discord/MessageInteraction.tsx | 11 | export function DiscordMessageInteraction({ author, authorNode, command }: IDiscordMessageInteraction) { |
| LOW | …s/ui/src/lib/components/discord/MessageAuthorReply.tsx | 11 | export function DiscordMessageAuthorReply({ avatar, bot, verified, color, username }: IDiscordMessageAuthorReply) { |
| LOW | …s/ui/src/lib/components/discord/MessageEmbedFooter.tsx | 7 | export function DiscordMessageEmbedFooter({ content, icon, timestamp }: IDiscordMessageEmbedFooter) { |
| LOW | …i/src/lib/components/discord/MessageEmbedThumbnail.tsx | 6 | export function DiscordMessageEmbedThumbnail({ alt, image }: IDiscordMessageEmbedThumbnail) { |
| LOW | …s/ui/src/lib/components/discord/MessageEmbedFields.tsx | 7 | export function DiscordMessageEmbedFields({ fields }: IDiscordMessageEmbedFields) { |
| LOW | packages/collection/__tests__/collection.test.ts | 20 | function expectInvalidFunctionError(cb: () => unknown, val?: unknown): void { |
| LOW | packages/proxy/src/util/responseHelpers.ts | 12 | export async function populateSuccessfulResponse(res: ServerResponse, data: ResponseLike): Promise<void> { |
| LOW | packages/proxy/src/util/responseHelpers.ts | 35 | export function populateGeneralErrorResponse(res: ServerResponse, error: DiscordAPIError | HTTPError): void { |
| LOW | packages/proxy/src/util/responseHelpers.ts | 50 | export function populateRatelimitErrorResponse(res: ServerResponse, error: RateLimitError): void { |
| LOW | packages/proxy/src/util/responseHelpers.ts | 60 | export function populateAbortErrorResponse(res: ServerResponse): void { |
| LOW | packages/structures/src/utils/optimization.ts | 19 | export function dateToDiscordISOTimestamp(date: Date) { |
| LOW | packages/util/src/functions/runtime.ts | 3 | export function shouldUseGlobalFetchAndWebSocket() { |
| LOW | …kages/builders/__tests__/components/selectMenu.test.ts | 37 | function makeStringSelectMenuWithOptions() { |
| LOW | …kages/builders/__tests__/components/selectMenu.test.ts | 47 | function mapStringSelectMenuOptionBuildersToJson(selectMenu: StringSelectMenuBuilder) { |
| LOW | packages/builders/src/components/Components.ts | 266 | export function resolveAccessoryComponent(component: APISectionAccessoryComponent) { |
| LOW | packages/voice/__tests__/VoiceConnection.test.ts | 74 | function createFakeVoiceConnection() { |
| LOW | packages/voice/__tests__/AudioPlayer.test.ts | 45 | function createVoiceConnectionMock() { |
| LOW | packages/voice/__tests__/entersState.test.ts | 7 | function createFakeVoiceConnection(status = VoiceConnectionStatus.Signalling) { |
| LOW | packages/voice/src/DataStore.ts | 19 | export function createJoinVoiceChannelPayload(config: JoinConfig) { |
| LOW | packages/voice/src/DataStore.ts | 36 | function getOrCreateGroup(group: string) { |
| LOW | packages/voice/src/receive/AudioReceiveStream.ts | 39 | export function createDefaultAudioReceiveStreamOptions(): AudioReceiveStreamOptions { |
| LOW | packages/voice/src/audio/TransformerGraph.ts | 118 | function canEnableFFmpegOptimizations(): boolean { |
| LOW | packages/scripts/src/generateSplitDocumentation.ts | 130 | function resolveCanonicalReference( |
| LOW | packages/scripts/src/generateSplitDocumentation.ts | 988 | async function writeSplitDocsToFileSystem({ |
| LOW | packages/scripts/src/generateSplitDocumentation.ts | 1021 | export async function generateSplitDocumentation({ |
| LOW | packages/rest/src/lib/utils/utils.ts | 129 | export function calculateUserDefaultAvatarIndex(userId: Snowflake) { |
| LOW | …/ws/src/strategies/context/IContextFetchingStrategy.ts | 39 | export async function managerToFetchingStrategyOptions(manager: WebSocketManager): Promise<FetchingStrategyOptions> { |
| LOW | packages/ws/src/utils/constants.ts | 81 | export function getInitialSendRateLimitState(): SendRateLimitState { |
| LOW | apps/website/src/hooks/useUnregisterServiceWorker.ts | 5 | export function useUnregisterServiceWorker() { |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | packages/next/api-extractor.json | 1 | { |
| LOW | packages/next/api-extractor.json | 21 | // "@discordjs/core", |
| LOW | packages/scripts/src/generateSplitDocumentation.ts | 321 | if (codeDestination) { |
| LOW | packages/scripts/src/generateSplitDocumentation.ts | 801 | // return ( |
| LOW | …ages/api-extractor/src/enhancers/ValidationEnhancer.ts | 81 | if (symbolMetadata.maxEffectiveReleaseTag === ReleaseTag.Internal) { |
| LOW | packages/api-extractor/src/collector/Collector.ts | 581 | // Example 1: |
| LOW | packages/api-extractor/src/collector/Collector.ts | 941 | let nodeForComment: ts.Node = declaration; |
| LOW | packages/api-extractor/src/collector/Collector.ts | 981 | |
| LOW | …/api-extractor/src/schemas/api-extractor-template.json | 441 | // "addToApiReportFile": false |
| LOW | …ges/api-extractor/src/generators/DtsRollupGenerator.ts | 301 | } else { |
| LOW | …ges/api-extractor/src/generators/ApiReportGenerator.ts | 181 | SourceFileLocationFormatter.formatDeclaration(astEntity.declaration), |
| LOW | …ges/api-extractor/src/generators/ApiReportGenerator.ts | 501 | |
| LOW | …ges/api-extractor/src/generators/ApiReportGenerator.ts | 521 | // SyntaxList: |
| LOW | packages/api-extractor/src/analyzer/ExportAnalyzer.ts | 521 | // ExportDeclaration: |
| LOW | packages/api-extractor/src/analyzer/ExportAnalyzer.ts | 541 | // ExportKeyword: pre=[export] sep=[ ] |
| LOW | packages/api-extractor/src/analyzer/ExportAnalyzer.ts | 561 | SourceFileLocationFormatter.formatDeclaration(declaration), |
| LOW | packages/api-extractor/src/analyzer/ExportAnalyzer.ts | 581 | // } |
| LOW | packages/api-extractor/src/analyzer/ExportAnalyzer.ts | 641 | // ImportKeyword: pre=[import] sep=[ ] |
| LOW | packages/api-extractor/src/analyzer/ExportAnalyzer.ts | 661 | modulePath: externalModulePath, |
| LOW | packages/api-extractor/src/analyzer/ExportAnalyzer.ts | 701 | // EXAMPLE: |
| LOW | packages/api-extractor/src/analyzer/ExportAnalyzer.ts | 741 | |
| LOW | packages/api-extractor/src/analyzer/AstSymbolTable.ts | 241 | // namespace X { |
| LOW | packages/api-extractor/src/analyzer/AstSymbolTable.ts | 261 | } |
| LOW | …pi-extractor-model/src/mixins/ApiItemContainerMixin.ts | 481 | // We want to find the reference token associated with the actual inherited declaration. |
| LOW | …pi-extractor-model/src/mixins/ApiItemContainerMixin.ts | 561 | // For example, in the code block below, `Bar.x` is reported as the inherited item, not `Foo.x`. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | packages/structures/__tests__/types/Mixin.test-d.ts | 24 | // Since MixinProperty2 doesn't utilize the type of property1 in kData, this works and is ok |
| MEDIUM | packages/structures/__tests__/types/Mixin.test-d.ts | 29 | // Since MixinProperty2 doesn't utilize the type of property1 in kData, this works and is ok |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | packages/util/__tests__/lazy.test.ts | 14 | const callback = vi.fn(() => 'Lorem Ipsum'); |
| LOW | packages/util/__tests__/lazy.test.ts | 18 | expect(lazyStoredValue()).toEqual('Lorem Ipsum'); |
| LOW | packages/util/__tests__/lazy.test.ts | 22 | const callback = vi.fn(() => 'Lorem Ipsum'); |
| LOW | packages/util/__tests__/lazy.test.ts | 30 | expect(cachedValue).toEqual('Lorem Ipsum'); |