Skip to content

MessageMentions

Defined in: sdk/js/src/mention.ts:64

Who a message mentions, as the host honoured them.

  • Mentions

new MessageMentions(raw): MessageMentions

Defined in: sdk/js/src/mention.ts:69

Mentions

MessageMentions

readonly everyone: boolean

Defined in: sdk/js/src/mention.ts:65

wit.Mentions.everyone


readonly members: string[]

Defined in: sdk/js/src/mention.ts:66

wit.Mentions.members


readonly roles: string[]

Defined in: sdk/js/src/mention.ts:67

wit.Mentions.roles

hasMember(id): boolean

Defined in: sdk/js/src/mention.ts:76

Whether member id is named.

string

boolean


hasRole(id): boolean

Defined in: sdk/js/src/mention.ts:81

Whether role id is named.

string

boolean


includes(memberId, roleIds?): boolean

Defined in: sdk/js/src/mention.ts:89

Whether a member with memberId and roleIds is mentioned: by id, by one of its roles, or by `@everyone“).

string

readonly string[] = []

boolean


isEmpty(): boolean

Defined in: sdk/js/src/mention.ts:94

Whether nobody is mentioned.

boolean