Skip to content

APIDMInteractionWrapper

Signature

export type APIDMInteractionWrapper<Original extends APIBaseInteraction<InteractionType, unknown>> = Omit<Original, 'guild_id' | 'member'> & Required<Pick<Original, 'user'>>;

Properties

token: string;

A continuation token for responding to the interaction

type: Type;

The type of interaction

user?: APIUser;

User object for the invoking user, if invoked in a DM

version: 1;

Read-only property, always `1`

data?: Data;

The command data payload

app_permissions: Permissions;

Bitwise set of permissions the app or bot has within the channel the interaction was sent from

entitlements: APIEntitlement[];

For monetized apps, any entitlements for the invoking user, representing access to premium SKUs