Durus
Durus
SIASapphire - Imagine a framework
Created by Durus on 4/20/2023 in #sapphire-support
Problem since upgrading to latest sapphirejs and TS 5.0
5 replies
SIASapphire - Imagine a framework
Created by Durus on 3/6/2023 in #sapphire-support
How to present Slashcommands?
5 replies
SIASapphire - Imagine a framework
Created by Durus on 2/26/2023 in #discordjs-support
interaction.showModal not working
interaction.showModal doesnt work, I dont know why. Code:
this.container.logger.debug("Start Editing...")
const modal = new ModalBuilder().setTitle("Nachricht bearbeiten").setCustomId(`modal_edit_${swallowed.id}`)
const input = new TextInputBuilder().setCustomId(`new_text`)
.setLabel("Text bearbeiten")
.setPlaceholder("Neuer Text")
.setValue(swallowed.message_content)
.setRequired(true)
const actRow = new ActionRowBuilder<TextInputBuilder>().addComponents(input);
modal.addComponents(actRow)
this.container.logger.debug("Showing Modal...")
await interaction.showModal(modal)
this.container.logger.debug("Start Editing...")
const modal = new ModalBuilder().setTitle("Nachricht bearbeiten").setCustomId(`modal_edit_${swallowed.id}`)
const input = new TextInputBuilder().setCustomId(`new_text`)
.setLabel("Text bearbeiten")
.setPlaceholder("Neuer Text")
.setValue(swallowed.message_content)
.setRequired(true)
const actRow = new ActionRowBuilder<TextInputBuilder>().addComponents(input);
modal.addComponents(actRow)
this.container.logger.debug("Showing Modal...")
await interaction.showModal(modal)
Via the debug-commands, I found out, that only the last line throws the error. It is something like:
2023-02-26 20:33:32 - ERROR - ValidationError > s.nativeEnum(T)
2023-02-26 20:33:32 - ERROR - Expected the value to be a string or number
2023-02-26 20:33:32 - ERROR -
2023-02-26 20:33:32 - ERROR - Received:
2023-02-26 20:33:32 - ERROR - | undefined
2023-02-26 20:33:32 - ERROR - ValidationError > s.nativeEnum(T)
2023-02-26 20:33:32 - ERROR - Expected the value to be a string or number
2023-02-26 20:33:32 - ERROR -
2023-02-26 20:33:32 - ERROR - Received:
2023-02-26 20:33:32 - ERROR - | undefined
5 replies
SIASapphire - Imagine a framework
Created by Durus on 2/23/2023 in #sapphire-support
InteractionCreate file
Can I easily create a listener for interactionCreate? I need it for some UI Abilities, and I am not sure if it overrides something...
4 replies
SIASapphire - Imagine a framework
Created by Durus on 2/2/2023 in #sapphire-support
sapphire steals the CPU
We just deployed a bot on a droplet... No I just got the message of my co-developer, that the process of the bot requires the Whole ram and CPU of the droplet, so Ubuntu shut the process down. The bot is in comparison very light, so I can't imagine how this happened. It is running via pm2. Any ideas? On my local test machine, normal running cost only 27 MB, not 1 GB 🤷🏻 Thx
9 replies