# Work in a server

> Make the steps after it act in another server the bot is in.

Source: https://docs.buildcord.dev/nodes/server/work-in-a-server/

`server.use` sets which server the rest of the run works in. A schedule has no server of its own, so a schedule that goes through saved rows uses it to act in each row's server: listing members, looking up roles, or anything else that reads `{server.id}`.

## Settings

| Setting | What it does |
| --- | --- |
| Server | The server's ID, such as `{row.server}`. |

## Ways out

| Way out | When |
| --- | --- |
| `found` | The bot is in that server. The steps after it work there. |
| `missing` | The bot isn't in that server, or no ID was given. Nothing changes. |

## Tokens

| Token | Value |
| --- | --- |
| `{server.id}` | The server it now works in. `{server.name}` and the other server tokens follow it. |

What came with an interaction about the member who set the flow off, such as their roles, stays with the server it happened in, so conditions about them look the member up again.

## Example

A schedule that closes polls every minute: find the polls that are due, and for each one, work in `{row.server}`, then close it. Steps that count the server's members now count the right server.

## Related

- [Schedule](https://docs.buildcord.dev/nodes/triggers/schedule)
- [List members](https://docs.buildcord.dev/nodes/members/list-members)
