Skip to content
Interfacehttpv0.10.2

PageContext

The context passed to a source loader. The raw payload carries a guild id with no guild object, so a loader that requires guild data fetches it through core.rest.

interface PageContext

guildId

The guild id, or null in a DM.

guildId: string | null;

interaction

The interaction that triggered this load (a command or a nav click).

interaction: Repliables;

user

The acting user, always present.

user: APIUser;