Goose
Goose
DIAdiscord.js - Imagine an app
Created by Goose on 1/21/2024 in #djs-questions
Permission Overwrites
thanks for the help 🙂
8 replies
DIAdiscord.js - Imagine an app
Created by Goose on 1/21/2024 in #djs-questions
Permission Overwrites
That appears to have been the problem. I thought the view channels permission allowed it to view all channels by default
8 replies
DIAdiscord.js - Imagine an app
Created by Goose on 1/21/2024 in #djs-questions
Permission Overwrites
If I remove the part that denies view permissions, it still has the same error
8 replies
DIAdiscord.js - Imagine an app
Created by Goose on 1/21/2024 in #djs-questions
Permission Overwrites
it has every permission besides administrator at the moment
8 replies
DIAdiscord.js - Imagine an app
Created by Goose on 1/21/2024 in #djs-questions
Permission Overwrites
the bot has that permission already but it doesn't work
8 replies
DIAdiscord.js - Imagine an app
Created by Goose on 4/17/2023 in #djs-questions
Attachment in embed
Didn't realize I could just use the URL. Thank you
7 replies
DIAdiscord.js - Imagine an app
Created by Goose on 4/17/2023 in #djs-questions
Attachment in embed
const user = await interaction.guild.members.fetch(interaction.user.id);
const title = interaction.options.getString("title") || "New Update";
console.log(Buffer.from(interaction.options.getAttachment("image")));
const attachment = new AttachmentBuilder(Buffer.from(interaction.options.getAttachment("image")), "image.png");


const embed = new EmbedBuilder()
.setColor(0xbd0d0d)
.setTitle(title)
.setDescription("hi")
.setThumbnail("attachment://image.png")
.setTimestamp()
.setFooter({ text: `Sent by ${user.username}`, iconURL: "redacted" });

await interaction.reply({ embeds: [embed], files: [{attachment: attachment}] });
const user = await interaction.guild.members.fetch(interaction.user.id);
const title = interaction.options.getString("title") || "New Update";
console.log(Buffer.from(interaction.options.getAttachment("image")));
const attachment = new AttachmentBuilder(Buffer.from(interaction.options.getAttachment("image")), "image.png");


const embed = new EmbedBuilder()
.setColor(0xbd0d0d)
.setTitle(title)
.setDescription("hi")
.setThumbnail("attachment://image.png")
.setTimestamp()
.setFooter({ text: `Sent by ${user.username}`, iconURL: "redacted" });

await interaction.reply({ embeds: [embed], files: [{attachment: attachment}] });
7 replies