API Client with SSL?
Hey guys,
currently I am trying to make the switch from an custom express API to the API plugin. Is there a way to let the plugin consume an ssl cert and open a https server?
Greetings
F
Favna•395d ago
you don't do SSL on the NodeJS level but on the reverse proxy level. Your API should be hosted on a domain anyway which means you'll be using NGINX or Caddy to reverse proxy it to a domain and you can provide SSL at that layer.
Providing SSL on the NodeJS layer is extremely cumbersome at best
S
ShowCast•395d ago
Yeah I asked because I managed to get a running https server with express to expose the API of my bot on my domain, but then I'll have to figure out how I can use this somehow
Welcome to the Sapphire Discord server! The next-gen object-oriented Discord.js bot framework can be found here.
2.1KMembers
View on DiscordWant results from more Discord servers?
More PostsContext Menu Command and Subcommand cannot be in same extended class?I have a slash command which is an extended `Subcommand` called `give-role` with two subcommands - `UserErrors not being caught by listener - bot is crashingmessageCommandError.mjs
```js
import { Events, Listener } from "@sapphire/framework";
import { send Subcommand isn't runningWhen the subcommand is run in Discord, it times out. I've added a log to the beginning of the methodHow to properly handle UserErrors?I'm using the official sapphire template and want to throw a UserError inside a context menu commandCan I set different requiredUserPermissions for each subcommand?Just wondering if this is possible, and how. ThanksHandling BulkOverwrite Registry ErrorsWhen I encounter this error
```
[ERROR] ApplicationCommandRegistries(BulkOverwrite) Failed to overwrEvents for VoiceHow can I do something like the following but for voice?
```
import { Listener } from '@sapphire/frHow do I use autocompleteRun on subcommands?^ As the title says. I can't seem to figure out how subcommands can have autocompleteRun implementedMessage editing fails even though message can be fetchedWhenever I want to edit an ephemeral message I get the following error:
```js
[ERROR] Encountered erProblem with ephemeral messagesI currently have a command which sends a button, problem is, once the button is pressed, I can't rem