# $findGuild — Finds a guild

## Syntax

```
$findGuild[query;(returnguild)]
```

## Parameters

- **query** *(text, required)* — The id, the name or an invite link (`https://discord.gg/code`) of a guild the bot is in
- **returnguild** *(boolean, optional)* — Returns the current guild id if none found

## Return Value

- Guild.

## Usage

```
$findGuild[query;(returnguild)] → result
```

## Example

```bdfd
$sendMessage[$findGuild[Other]]
```
