92bricks
92bricks
DIAdiscord.js - Imagine an app
Created by 92bricks on 8/1/2023 in #djs-questions
Embed images no longer loading
const embedVar = new EmbedBuilder()
.setTitle(title)
// .setDescription(description)
.addFields(
{name: "Number of available Chapters", value: `${numberOfChapters}`},
{name: "Pick a Chapter to read\n", value: `➡️ Type the chapter number you'd like to read.\nTo read from the first chapter, type **first**\nTo read from the latest chapter type **last**\n${savedSpotMessage}`}
)
.setFooter({
text: `Publication: ${publication}\nDate Created: ${created}\nStatus: ${status}`
})
.setThumbnail(interaction.user.avatarURL())
.setImage(cover)
const embedVar = new EmbedBuilder()
.setTitle(title)
// .setDescription(description)
.addFields(
{name: "Number of available Chapters", value: `${numberOfChapters}`},
{name: "Pick a Chapter to read\n", value: `➡️ Type the chapter number you'd like to read.\nTo read from the first chapter, type **first**\nTo read from the latest chapter type **last**\n${savedSpotMessage}`}
)
.setFooter({
text: `Publication: ${publication}\nDate Created: ${created}\nStatus: ${status}`
})
.setThumbnail(interaction.user.avatarURL())
.setImage(cover)
The "cover" url is assigned appropriately. Even if I insert a static image url it is not loading. I am updated to the 14.12.0. Any idea why this may be occurring?
9 replies
DIAdiscord.js - Imagine an app
Created by 92bricks on 11/16/2022 in #djs-questions
Is it possible to get displayAvatarUrl from User interaction option?
My slack command has a User option requirement. From that, I am able to use interaction.options.getUser() to get the User information. But, I am unable to get the displayAvatarUrl.
26 replies
DIAdiscord.js - Imagine an app
Created by 92bricks on 11/15/2022 in #djs-questions
Manipulating Images
Looking at https://discordjs.guide/popular-topics/canvas.html#manipulating-images I wanted to know how I can add a new font that isn't an Emoji font?
5 replies
DIAdiscord.js - Imagine an app
Created by 92bricks on 9/20/2022 in #djs-questions
Collector Filter
Is it possible to let filter account for all discord user responses besides the bot itself? Current filter - const filter = m => m.user.id === interaction.user.id && m.content.length > 2;
12 replies
DIAdiscord.js - Imagine an app
Created by 92bricks on 9/19/2022 in #djs-questions
Discordjs v14 Collector not working
I just updated my app to v14 from v13. Everything works fine, except for the collector. The collector is setup the same way as the v13 way. I looked through the documentation and found no differences between v13 and v14. Am I missing something?
const filter = m => m.author.id === interaction.user.id && (m.content in allowedResponses || m.content.toLowerCase() === 'first' || m.content.toLowerCase() === 'last' || m.content.toLowerCase() === '.')

const collector = interaction.channel.createMessageCollector({filter, max: 1, time: 60000})
const filter = m => m.author.id === interaction.user.id && (m.content in allowedResponses || m.content.toLowerCase() === 'first' || m.content.toLowerCase() === 'last' || m.content.toLowerCase() === '.')

const collector = interaction.channel.createMessageCollector({filter, max: 1, time: 60000})
13 replies
DIAdiscord.js - Imagine an app
Created by 92bricks on 9/14/2022 in #djs-questions
Multiple Collectors
Can I have multiple Collectors in a single event? I’m wanting to listen for both button click and message text and respond accordingly based on a click or a typed message response.
5 replies