Updated Permission (markdown)

Flam3rboy
2021-04-25 19:19:33 +02:00
parent 19cf1c7ac7
commit 26d1f4dcfd

@@ -9,6 +9,8 @@ getPermission(user_id: string, guild_id: string, channel_id?: string): Promise<P
### Example
```ts
const perms = await getPermission(req.userid, guild_id);
perms.hasThrow("MANAGE_GUILD") // will throw an error if the users lacks the permission
if (perms.has("MANAGE_GUILD")) {
...
}