> For the complete documentation index, see [llms.txt](https://pqko.gitbook.io/pqko-discord/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pqko.gitbook.io/pqko-discord/oauth2/get-guild-preview.md).

# Get Guild Preview

Gets guild preview.

Bot must be in server to use

```javascript
oauth.getGuildPreview(guildID).then((x) => console.log(x))
```

And you should get something like this

```json
{
  id: '...',
  name: '...',
  icon: null,
  description: null,
  home_header: null,
  splash: null,
  discovery_splash: null,
  features: [ '...' ],
  approximate_member_count: 1,
  approximate_presence_count: 1,
  emojis: [],
  stickers: []
}
```
