ItaChi
ItaChi
SIASapphire - Imagine a framework
Created by ItaChi on 3/26/2024 in #sapphire-support
Two Commands In One File
when i export chat input command and user context menu command in one file it reads the first export only. what's the problem ?
6 replies
SIASapphire - Imagine a framework
Created by ItaChi on 1/31/2024 in #sapphire-support
Subfolders Inside Commands Folder
Can i put the commands inside subfolders in commands folder ? example command path : commands/public/ping.js
2 replies
SIASapphire - Imagine a framework
Created by ItaChi on 5/20/2023 in #discordjs-support
TypeError: import_undici4.FormData is not a constructor
I get this error : TypeError: import_undici4.FormData is not a constructor when i try to send an attachment Code :
const canvas = Canvas.createCanvas(700, 250);

const ctx = canvas.getContext('2d');

ctx.fillStyle = `${res.data.banner_color}`;

ctx.fillRect(0, 0, canvas.width, canvas.height);

const attachment = new AttachmentBuilder(canvas.toBuffer("image/png"), { name: "banner.png" });

embed.setImage(`attachment://${attachment.name}`);

await interaction.reply({ embeds: [embed], files: [attachment] })
const canvas = Canvas.createCanvas(700, 250);

const ctx = canvas.getContext('2d');

ctx.fillStyle = `${res.data.banner_color}`;

ctx.fillRect(0, 0, canvas.width, canvas.height);

const attachment = new AttachmentBuilder(canvas.toBuffer("image/png"), { name: "banner.png" });

embed.setImage(`attachment://${attachment.name}`);

await interaction.reply({ embeds: [embed], files: [attachment] })
16 replies
SIASapphire - Imagine a framework
Created by ItaChi on 5/19/2023 in #discordjs-support
client.ws.ping = -1 ??
No description
9 replies
SIASapphire - Imagine a framework
Created by ItaChi on 3/15/2023 in #sapphire-support
Reply During Cooldown
Can I make the bot reply with the remaining time of cooldown delay ?
8 replies