Interface: PaginatedMessageInternationalizationContext
Defined in: projects/utilities/packages/discord.js-utilities/src/lib/PaginatedMessages/PaginatedMessageTypes.ts:332
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 InternationalizationHandler.fetchLanguage functions. This context enables implementation of per-guild, per-channel, and per-user localization.
Properties
channel
channel:
null
|DMChannel
|PartialDMChannel
|PartialGroupDMChannel
|NewsChannel
|StageChannel
|TextChannel
|PublicThreadChannel
|PrivateThreadChannel
|VoiceChannel
Defined in: projects/utilities/packages/discord.js-utilities/src/lib/PaginatedMessages/PaginatedMessageTypes.ts:336
The DiscordChannel object to fetch the preferred language for.
guild
guild:
null
|Guild
Defined in: projects/utilities/packages/discord.js-utilities/src/lib/PaginatedMessages/PaginatedMessageTypes.ts:334
The Guild object to fetch the preferred language for, or null
if the language is to be fetched in a DM.
interactionGuildLocale?
optional
interactionGuildLocale:null
|Locale
Defined in: projects/utilities/packages/discord.js-utilities/src/lib/PaginatedMessages/PaginatedMessageTypes.ts:340
The Interaction.guildLocale provided by the Discord API
interactionLocale?
optional
interactionLocale:Locale
Defined in: projects/utilities/packages/discord.js-utilities/src/lib/PaginatedMessages/PaginatedMessageTypes.ts:342
The Interaction.locale provided by the Discord API
user
user:
null
|User
Defined in: projects/utilities/packages/discord.js-utilities/src/lib/PaginatedMessages/PaginatedMessageTypes.ts:338
The user to fetch the preferred language for.