Chen
Chen
DIAdiscord.js - Imagine an app
Created by Chen on 8/14/2024 in #djs-questions
Separated inline's fields on embeds
7 replies
DIAdiscord.js - Imagine an app
Created by Chen on 8/14/2024 in #djs-questions
Separated inline's fields on embeds
Awesome, thanks.
7 replies
DIAdiscord.js - Imagine an app
Created by Chen on 8/14/2024 in #djs-questions
Separated inline's fields on embeds
spacing.
7 replies
DIAdiscord.js - Imagine an app
Created by Chen on 8/14/2024 in #djs-questions
Separated inline's fields on embeds
No description
7 replies
DIAdiscord.js - Imagine an app
Created by Chen on 8/14/2024 in #djs-questions
Separated inline's fields on embeds
this is my current code. I tried to do something like creating a blank inline, but I dont know what characters I'd be able to use that have like, no height, no width or whatever.
const openingMessageEmbed = new EmbedBuilder()
.setTitle(`Ticket #${ticket.id} - ${ticket.ckey}`)
.setDescription(bwoinkString)
.addFields(
{
name: "ckey",
value: `${ticket.ckey} ${discordLinkRecord ? `(Discord Linked: <@${discordLinkRecord.id.toString()}>)` : ""}`,
inline: true,
},
{ name: "Keyname", value: ticket.keyName, inline: true },
// { name: "", value: "" },
{ name: "Round ID", value: ticket.roundId.toString(), inline: true },
{ name: "Ticket ID", value: ticket.id.toString(), inline: true },
// { name: "", value: "" },
{ name: "Dated", value: createFullTimestamp(ticket.openedAt), inline: true },
{ name: "Round Time @ creation", value: ticket.roundTimer, inline: true },
)
.setURL(
`http://viewer.monkestation.com/?roundid=${req.body.roundid}&password=${req.body.replay_pass}#${req.body.world_time.toString()}%60,
)

.setFooter({ text: "Click the title to open the replay" });
const openingMessageEmbed = new EmbedBuilder()
.setTitle(`Ticket #${ticket.id} - ${ticket.ckey}`)
.setDescription(bwoinkString)
.addFields(
{
name: "ckey",
value: `${ticket.ckey} ${discordLinkRecord ? `(Discord Linked: <@${discordLinkRecord.id.toString()}>)` : ""}`,
inline: true,
},
{ name: "Keyname", value: ticket.keyName, inline: true },
// { name: "", value: "" },
{ name: "Round ID", value: ticket.roundId.toString(), inline: true },
{ name: "Ticket ID", value: ticket.id.toString(), inline: true },
// { name: "", value: "" },
{ name: "Dated", value: createFullTimestamp(ticket.openedAt), inline: true },
{ name: "Round Time @ creation", value: ticket.roundTimer, inline: true },
)
.setURL(
`http://viewer.monkestation.com/?roundid=${req.body.roundid}&password=${req.body.replay_pass}#${req.body.world_time.toString()}%60,
)

.setFooter({ text: "Click the title to open the replay" });
7 replies