b1nzee
SIASapphire - Imagine a framework
•Created by b1nzee on 3/12/2024 in #sapphire-support
Subcommands Not Working
99 replies
SIASapphire - Imagine a framework
•Created by b1nzee on 2/8/2024 in #sapphire-support
Issue with @sapphire/plugin-api
Hello,
I have installed @sapphire/plugin-api using the following command:
The install went fine, but intellisense is not showing "api" in my ClientOptions, instead I am getting this error:
This is my package.json :
I tried reinstalling my node modules.
6 replies
SIASapphire - Imagine a framework
•Created by b1nzee on 8/5/2023 in #sapphire-support
Deleting Buttons
Hello,
I have a chat input command which sends a confirmation embed (this contains a confirm and deny button), which this is part of the ChatInputCommandInteraction
I have the confirm button handler in my "interaction-handlers" directory which handles the button click. On the button click, I want to delete the action row from the ChatInputCommandInteraction, however, I only have access to the ButtonInteraction within the button handler which is a separate interaction.
What is the cleanest / most efficient way to achieve this?
21 replies
SIASapphire - Imagine a framework
•Created by b1nzee on 5/27/2023 in #sapphire-support
Plugin API - Cookie Not Setting
Hello,
I am having an issue where the cookie for OAuth2 authentication is not setting in the browser, this is in a production environment. Here is my config:
I have also set
NODE_ENV="production"
in my .env file to ensure the Secure
cookie. Upon making a request to https://api.revelations.gg/oauth/callback
, I can see a Set-Cookie
header is indeed returned but it's not setting in the browser.3 replies
SIASapphire - Imagine a framework
•Created by b1nzee on 5/26/2023 in #sapphire-support
Multiple CORS Origins
Hello,
With @sapphire/plugin-api, can you define multiple CORS origins? If so, how would I do this? Because using "*" still gives me a CORS error in browser and I can only define 1 origin by looks of things in the config.
4 replies
SIASapphire - Imagine a framework
•Created by b1nzee on 5/23/2023 in #sapphire-support
Context Menu Commands Lowercase Name
Hello, I have noticed when creating a context menu command, despite me writing "Warn" as the command name in the code, it appears as "warn" on the actual context menu.
6 replies