# Guild

## get\_guild()

Returns a dictionary of all guild members.

#### **Usage**

`get_guild()`

#### **Returns**

A dictionary of guild members or `None` if you are not in game. The dictionary key is the guild member ID.

```
 {
 	10944: {
 		'donated_gp': 35774,
 		'authority': 13,
 		'level': 50,
 		'online': 0,
 		'name': 'TAKER',
 		'region': 0,
 		'model': 14884
 	},
 	12308: {
 		'donated_gp': 265026,
 		'authority': 13,
 		'level': 69,
 		'online': 0,
 		'name': 'Pattylacks',
 		'region': 0,
 		'model': 1911
 	},
 	9780: {
 		'donated_gp': 281785,
 		'authority': 4294967295,
 		'level': 90,
 		'online': 0,
 		'name': 'NotAnt',
 		'region': 0,
 		'model': 1927
 	},
 	10837: {
 		'donated_gp': 282416,
 		'authority': 13,
 		'level': 81,
 		'online': 0,
 		'name': 'shark',
 		'region': 0,
 		'model': 1912
 	},
 	10281: {
 		'donated_gp': 266365,
 		'authority': 13,
 		'level': 70,
 		'online': 0,
 		'name': 'Zach',
 		'region': 0,
 		'model': 14891
 	},
 	10265: {
 		'donated_gp': 367015,
 		'authority': 31,
 		'level': 87,
 		'online': 0,
 		'name': 'Dave',
 		'region': 0,
 		'model': 1927
 	},
 	10826: {
 		'donated_gp': 318875,
 		'authority': 29,
 		'level': 73,
 		'online': 0,
 		'name': 'Nick',
 		'region': 0,
 		'model': 14887
 	},
 	10839: {
 		'donated_gp': 457117,
 		'authority': 29,
 		'level': 89,
 		'online': 0,
 		'name': 'Alexander',
 		'region': 0,
 		'model': 14882
 	},
 	7758: {
 		'donated_gp': 260691,
 		'authority': 31,
 		'level': 90,
 		'online': 1,
 		'name': '1337WeeMan',
 		'region': 0,
 		'model': 1928
 	}
 }
```

## get\_guild\_union

Returns a dictionary of guild union members.

#### **Usage**

`get_guild_union()`

#### **Returns**

A dictionary of guild union members or `None` if you are not in game. The dictionary key is the union ID.

```
{
	928: {
		'name': 'ResPecT',
		'count': 49,
		'level': 5,
		'master': 'Ruger'
	},
	1130: {
		'name': 'Defiance',
		'count': 11,
		'level': 5,
		'master': '_SwipeR_'
	},
	982: {
		'name': '_ResPecT_',
		'count': 20,
		'level': 5,
		'master': 'Serenity'
	}
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://plugins.phbot.org/phbot-api/guild.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
