Skip to content

Defined in: zaun/js/index.d.ts:374

As a bot: someone used one of this bot’s commands, components or modals.

new Interaction(): Interaction

Interaction

readonly channel: Channel

Defined in: zaun/js/index.d.ts:379


readonly commandName: string

Defined in: zaun/js/index.d.ts:383


readonly community: Community

Defined in: zaun/js/index.d.ts:375


readonly customId: string

Defined in: zaun/js/index.d.ts:385


readonly data: any

Defined in: zaun/js/index.d.ts:382

The interaction as the host sent it.


readonly id: string

Defined in: zaun/js/index.d.ts:376


readonly member: Member

Defined in: zaun/js/index.d.ts:380


readonly options: OptionValueData[]

Defined in: zaun/js/index.d.ts:384


readonly type: number

Defined in: zaun/js/index.d.ts:378

InteractionType: 2 command, 3 component, 4 autocomplete, 5 modal submit.


readonly values: string[]

Defined in: zaun/js/index.d.ts:386

autocomplete(choices): Promise<unknown>

Defined in: zaun/js/index.d.ts:394

object[]

Promise<unknown>


defer(options?): Promise<{ message_id?: string; }>

Defined in: zaun/js/index.d.ts:391

boolean

Promise<{ message_id?: string; }>


deferUpdate(): Promise<unknown>

Defined in: zaun/js/index.d.ts:392

Promise<unknown>


deleteReply(): Promise<void>

Defined in: zaun/js/index.d.ts:398

Promise<void>


editReply(options): Promise<void>

Defined in: zaun/js/index.d.ts:397

BotMessageOptions

Promise<void>


field(customId): string

Defined in: zaun/js/index.d.ts:388

string

string


followUp(options): Promise<{ message_id?: string; }>

Defined in: zaun/js/index.d.ts:396

BotMessageOptions

Promise<{ message_id?: string; }>


option(name): string | number | boolean

Defined in: zaun/js/index.d.ts:387

string

string | number | boolean


reply(options): Promise<{ message_id?: string; }>

Defined in: zaun/js/index.d.ts:390

BotMessageOptions

Promise<{ message_id?: string; }>


respond(type, data?): Promise<{ message_id?: string; }>

Defined in: zaun/js/index.d.ts:389

number

unknown

Promise<{ message_id?: string; }>


showModal(modal): Promise<unknown>

Defined in: zaun/js/index.d.ts:395

ModalBuilder | { components: ComponentData[]; custom_id: string; title: string; }

Promise<unknown>


update(options): Promise<{ message_id?: string; }>

Defined in: zaun/js/index.d.ts:393

BotMessageOptions

Promise<{ message_id?: string; }>