Skip to main content

Interface: PaginatedMessageInternationalizationContext

discord.js-utilities/src.PaginatedMessageInternationalizationContext

internal This is a duplicate of the same interface in @sapphire/plugin-i18next Duplicated here for the type of the parameters in the functions

Context for {@link InternationalizationHandler.fetchLanguage} functions. This context enables implementation of per-guild, per-channel, and per-user localization.

Properties

author

Optional author: null | User

deprecated Use {@link InternationalizationContext.user} instead; this will be removed in the next major version. The user to fetch the preferred language for.

Defined in

projects/utilities/packages/discord.js-utilities/src/lib/PaginatedMessages/PaginatedMessageTypes.ts:189


channel

channel: null | DMChannel | PartialDMChannel | NewsChannel | StageChannel | StoreChannel | TextChannel | ThreadChannel | VoiceChannel

The {@link DiscordChannel} object to fetch the preferred language for.

Defined in

projects/utilities/packages/discord.js-utilities/src/lib/PaginatedMessages/PaginatedMessageTypes.ts:184


guild

guild: null | Guild

The {@link Guild} object to fetch the preferred language for, or null if the language is to be fetched in a DM.

Defined in

projects/utilities/packages/discord.js-utilities/src/lib/PaginatedMessages/PaginatedMessageTypes.ts:182


interactionGuildLocale

Optional interactionGuildLocale: null | string

The {@link Interaction.guildLocale} provided by the Discord API

Defined in

projects/utilities/packages/discord.js-utilities/src/lib/PaginatedMessages/PaginatedMessageTypes.ts:193


interactionLocale

Optional interactionLocale: string

The {@link Interaction.locale} provided by the Discord API

Defined in

projects/utilities/packages/discord.js-utilities/src/lib/PaginatedMessages/PaginatedMessageTypes.ts:195


user

user: null | User

The user to fetch the preferred language for.

Defined in

projects/utilities/packages/discord.js-utilities/src/lib/PaginatedMessages/PaginatedMessageTypes.ts:191