> 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/modify-guild.md).

# Modify Guild

Modifies guild via OAuth2

The JSON parameters are found at : <https://discord.com/developers/docs/resources/guild#modify-guild>

```javascript
oauth.modifyGuild(guildID, {
    name: "This has been edited!"
}).then((x) => console.log(x))
```

Returns the new editied/modified guild as JSON!
