feat(api): add autoproxy endpoints

This commit is contained in:
spiral
2022-06-02 13:32:31 -04:00
parent 67ce371e7e
commit c87979ef03
6 changed files with 152 additions and 6 deletions

View File

@@ -60,6 +60,40 @@ Takes a partial [system guild settings](/api/models#system-guild-settings-model)
Returns a [system guild settings](/api/models#system-guild-settings-model) object on success.
### Get System Autoproxy Settings
GET `/systems/@me/autoproxy`
Query String Parameters
|name|type|
|---|---|
|guild_id?|snowflake|
|channel_id?|snowflake|
Returns an [autoproxy settings](/api/models/#autoproxy-settings-model) object on success.
::: warning
Currently, only autoproxy with `guild_id` is supported. The API will return an error message if you specify `channel_id`, or do not specify a `guild_id`.
:::
### Update System Autoproxy Settings
PATCH `/systems/@me/autoproxy`
Query String Parameters
|name|type|
|---|---|
|guild_id?|snowflake|
|channel_id?|snowflake|
Takes a partial [autoproxy settings](/api/models/#autoproxy-settings-model) object.
Returns an [autoproxy settings](/api/models/#autoproxy-settings-model) object on success.
::: warning
Currently, only autoproxy with `guild_id` is supported. The API will return an error message if you specify `channel_id`, or do not specify a `guild_id`.
:::
---
## Members