discord.js/packages/proxy-container
Jiralite 346d1be72b
build: Bump dependencies (#10322)
* build: bump dependencies

* build: update pnpm to 9.1.4
2024-06-05 09:42:33 +00:00
..
src build: pnpm (#9806) 2023-08-27 20:24:03 +02:00
.gitignore chore: refactor workspace 2023-05-03 02:14:22 +02:00
.lintstagedrc.cjs build: multi-config build and dep update 2023-11-14 01:26:22 +01:00
.prettierignore build: ignores/swap/concurrency 2023-08-24 21:58:34 +02:00
.prettierrc.cjs build: multi-config build and dep update 2023-11-14 01:26:22 +01:00
Dockerfile build: pnpm (#9806) 2023-08-27 20:24:03 +02:00
LICENSE chore: update license files (#9862) 2023-09-30 00:42:43 +00:00
package.json build: Bump dependencies (#10322) 2024-06-05 09:42:33 +00:00
README.md docs: remove broken markdown links (#9822) 2023-09-18 15:24:49 +00:00
tsconfig.eslint.json build: fix the messy dependency graph 2023-11-09 00:13:01 +01:00
tsconfig.json build: fix the messy dependency graph 2023-11-09 00:13:01 +01:00
tsup.config.ts build: multi-config build and dep update 2023-11-14 01:26:22 +01:00


discord.js


Discord server dockerhub version dockerhub pulls Build status

Vercel Cloudflare Workers

About

@discordjs/proxy-container - Lightweight HTTP proxy for Discord's API, brought to you as a container 📦

Usage

Quickly spin up an instance:

docker run -d --restart unless-stopped --name proxy -p 127.0.0.1:8080:8080 discordjs/proxy

Use it:

import { Client } from 'discord.js';

const client = new Client({
	// other options,
	rest: {
		api: 'http://localhost:8080/api',
	},
});

Or with just @discordjs/rest:

import { REST } from '@discordjs/rest';

const rest = new REST({
	api: 'http://localhost:8080/api',
});

Do note that you should not use the same proxy with multiple bots. We cannot guarantee you won't hit rate limits. Webhooks with tokens or other requests that don't include the Authorization header are okay, though!

Contributing

Before creating an issue, please ensure that it hasn't already been reported/suggested.
See the contribution guide if you'd like to submit a PR.

Help

If you don't understand something in the documentation, you are experiencing problems, or you just need a gentle nudge in the right direction, please don't hesitate to join our official discord.js Server.