# Struct command::object::Member

> A member as visible to the viewer. Optional fields depend on the viewer's permissions; the host filters them.

`zaun_community_protocol::command::object::Member` · Struct

```rust
pub struct Member { … }
```

A member as visible to the viewer. Optional fields depend on the viewer's
permissions; the host filters them.

## Fields

### `member_id: MemberId`

Host-assigned id.

### `display_name: String`

1–32 scalars.

### `role_ids: Vec<RoleId>`

Assigned roles; `@everyone` is implicit and never listed.

### `joined_at: u64`

Admission time, ms.

### `timeout_until: Option<u64>`

Only for `TIMEOUT_MEMBERS` viewers and the member itself.

### `state: Option<MembershipState>`

Only for the member itself and `APPROVE_MEMBERS`/`KICK_MEMBERS` viewers.

### `admission: Option<Admission>`

Only for `APPROVE_MEMBERS` viewers.

### `note: Option<String>`

The membership request note: `membership.pending` and `membership.requested` only.

SPEC: the protocol/the protocol say the member object comes "with `admission` and `note`" without
placing `note`; it is modelled as a member field.

### `bot_id: Option<BotId>`

Present only for bots.

### `status_text: Option<String>`

The custom status text (`member.status.set`), until it expires.

### `status_emoji: Option<String>`

The custom status emoji.

### `status_expires_at: Option<u64>`

When the host clears the custom status, ms.

### `voice_channel_id: Option<ChannelId>`

Only in what the host sends a bot: the voice channel the member is connected to, when
the bot can see that channel (so `/play` can join the caller).

## Trait implementations

`Clone`, `Debug`, `Deserialize<'de>`, `Eq`, `PartialEq`, `Serialize`, `StructuralPartialEq`

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/command/object/member/struct.Member.html)
