Skip to main content

Interface: PaginatedMessageInternationalizationContext

@sapphire/discord.js-utilities.PaginatedMessageInternationalizationContext

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 InternationalizationHandler.fetchLanguage functions. This context enables implementation of per-guild, per-channel, and per-user localization.

Properties

channel

channel: null | DMChannel | PartialDMChannel | NewsChannel | StageChannel | TextChannel | PrivateThreadChannel | PublicThreadChannel<boolean> | VoiceChannel

The DiscordChannel object to fetch the preferred language for.

Defined in

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


guild

guild: null | Guild

The 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:325


interactionGuildLocale

Optional interactionGuildLocale: null | Locale

The Interaction.guildLocale provided by the Discord API

Defined in

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


interactionLocale

Optional interactionLocale: Locale

The Interaction.locale provided by the Discord API

Defined in

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


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:329