Skip to content

Is it possible to use this API inside the cloudflare workers framework/engine? #8428

Closed Answered by monbrey
null-prophet asked this question in Q&A
Discussion options

You must be logged in to vote

discord.js is designed for gateway connections, generally running as a Node application. It's not intended to be used for http interactions.

However, the discord.js library is composed of several packages that can be used independently - you may be interested in @discordjs/rest for making API calls and @discordjs/builders for building components, embeds etc in responses.

There's also a standalone structures package being built for class structures to represent Discord objects (User, Message etc)

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@null-prophet
Comment options

@Crypt0Beaver
Comment options

@NickantX
Comment options

@sayyidyofa
Comment options

@didinele
Comment options

Answer selected by null-prophet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
8 participants