diff --git a/packages/proxy-container/README.md b/packages/proxy-container/README.md index ba54f54bc..9eeae0749 100644 --- a/packages/proxy-container/README.md +++ b/packages/proxy-container/README.md @@ -29,16 +29,25 @@ Use it: ```ts import { Client } from 'discord.js'; -import { ProxyAgent } from 'undici'; const client = new Client({ // other options, rest: { - agent: new ProxyAgent('https://localhost:8080'), + api: 'http://localhost:8080/api', }, }); ``` +Or with just `@discordjs/rest`: + +```ts +import { REST } from '@discordjs/rest'; + +const rest = new REST({ + api: 'http://localhost:8080/api', +}); +``` + ## Links - [Website](https://discord.js.org/) ([source](https://github.com/discordjs/website))