Ruin 🌈🐲
Ruin 🌈🐲
Explore posts from servers
SIASapphire - Imagine a framework
Created by Ruin 🌈🐲 on 11/3/2024 in #sapphire-support
interaction.channel is null in slash commands
Hello. I'm sure this is an ID10T issue, but interaction.channel is null for me in my slash commands being used in DMs for my user bot. Am I missing something, like an intent? I'm literally only trying to check if the channel is DMs / DM group or if it's in an NSFW guild channel. Thanks.
17 replies
SIASapphire - Imagine a framework
Created by Ruin 🌈🐲 on 7/9/2024 in #sapphire-support
PM2 issues
No description
26 replies
SIASapphire - Imagine a framework
Created by Ruin 🌈🐲 on 7/1/2024 in #sapphire-support
Commands aren't being updated on Discord's end
Hello. I'm having trouble with commands not being updated on Discord's end. I added options to one of my commands, but the option isn't showing up in Discord. I've also tried removing the command completely from the dist folder, but that just results in a command that times out, instead of saying the command is outdated.
19 replies
SIASapphire - Imagine a framework
Created by Ruin 🌈🐲 on 1/6/2024 in #sapphire-support
Can't get working in Deno
No description
278 replies
SIASapphire - Imagine a framework
Created by Ruin 🌈🐲 on 1/4/2024 in #sapphire-support
How to get ID of command?
How can I easily get the ID of a registered command for the purpose of mentioning it? I'll be mentoning the command from another command.
5 replies
SIASapphire - Imagine a framework
Created by Ruin 🌈🐲 on 4/4/2023 in #discordjs-support
Having trouble with components
I'm trying to update Discord.js from 13 to 14, but I'm having trouble with components. TS is complaining about a missing type field in row, but adding it does nothing. What am I doing wrong?
const row = new ActionRowBuilder({
components: [
new ButtonBuilder({
customId: "verify",
label: "Verify",
style: ButtonStyle.Primary,
}),
],
});

interaction.channel?.send({
components: [row],
});
const row = new ActionRowBuilder({
components: [
new ButtonBuilder({
customId: "verify",
label: "Verify",
style: ButtonStyle.Primary,
}),
],
});

interaction.channel?.send({
components: [row],
});
6 replies