# MessageMentions

Defined in: [sdk/js/src/mention.ts:64](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/mention.ts#L64)

Who a message mentions, as the host honoured them.

## Implements

- `Mentions`

## Constructors

### Constructor

> **new MessageMentions**(`raw`): `MessageMentions`

Defined in: [sdk/js/src/mention.ts:69](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/mention.ts#L69)

#### Parameters

##### raw

`Mentions`

#### Returns

`MessageMentions`

## Properties

### everyone

> `readonly` **everyone**: `boolean`

Defined in: [sdk/js/src/mention.ts:65](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/mention.ts#L65)

#### Implementation of

`wit.Mentions.everyone`

***

### members

> `readonly` **members**: `string`[]

Defined in: [sdk/js/src/mention.ts:66](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/mention.ts#L66)

#### Implementation of

`wit.Mentions.members`

***

### roles

> `readonly` **roles**: `string`[]

Defined in: [sdk/js/src/mention.ts:67](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/mention.ts#L67)

#### Implementation of

`wit.Mentions.roles`

## Methods

### hasMember()

> **hasMember**(`id`): `boolean`

Defined in: [sdk/js/src/mention.ts:76](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/mention.ts#L76)

Whether member `id` is named.

#### Parameters

##### id

`string`

#### Returns

`boolean`

***

### hasRole()

> **hasRole**(`id`): `boolean`

Defined in: [sdk/js/src/mention.ts:81](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/mention.ts#L81)

Whether role `id` is named.

#### Parameters

##### id

`string`

#### Returns

`boolean`

***

### includes()

> **includes**(`memberId`, `roleIds?`): `boolean`

Defined in: [sdk/js/src/mention.ts:89](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/mention.ts#L89)

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

#### Parameters

##### memberId

`string`

##### roleIds?

readonly `string`[] = `[]`

#### Returns

`boolean`

***

### isEmpty()

> **isEmpty**(): `boolean`

Defined in: [sdk/js/src/mention.ts:94](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/mention.ts#L94)

Whether nobody is mentioned.

#### Returns

`boolean`
