# Event

> Start a flow when something happens in a server, such as a member joining or a message being edited.

Source: https://docs.buildcord.dev/nodes/triggers/event/

`trigger.event` runs when something happens in a server.

## Settings

| Setting | What it does |
| --- | --- |
| Event | The thing to react to: members joining, leaving, changing or being banned; messages sent, edited or deleted; reactions added or removed; joining, moving between or leaving voice; channels, roles, threads and invites being made. See [Events](https://docs.buildcord.dev/reference/events). |

## Ways out

`out`.

## Produces

Each event provides its own tokens. A member-joins flow has `{member.joinedAt}`, and a message flow has `{message.content}`. See [Events](https://docs.buildcord.dev/reference/events) for every token.

## Notes

- Event flows need a **gateway bot**, which the paid plan includes. See [Plans](https://docs.buildcord.dev/concepts/plans).
- Some events need a privileged gateway intent. Buildcord switches those on in Discord when you deploy, and lists them under **Settings → Permissions**.
- Be careful with **Message sent**. It fires for every message the bot can read, so put a [Comparison](https://docs.buildcord.dev/nodes/conditions/comparison) or [Channel](https://docs.buildcord.dev/nodes/conditions/channel) check first.

## Example

React to **Member joins** with a [Send to a channel](https://docs.buildcord.dev/nodes/messages/send-to-channel) step that welcomes `{user.mention}`.

## Related

- [Events](https://docs.buildcord.dev/reference/events)
- [Direct message](https://docs.buildcord.dev/nodes/messages/direct-message)
