trplnr
trplnr
DIAdiscord.js - Imagine an app
Created by trplnr on 7/2/2023 in #djs-questions
CombinedPropertyError? when trying to use a function that uses JSDOM to return a string for embed
thanks
28 replies
DIAdiscord.js - Imagine an app
Created by trplnr on 7/2/2023 in #djs-questions
CombinedPropertyError? when trying to use a function that uses JSDOM to return a string for embed
it works now
28 replies
DIAdiscord.js - Imagine an app
Created by trplnr on 7/2/2023 in #djs-questions
CombinedPropertyError? when trying to use a function that uses JSDOM to return a string for embed
oh my god
28 replies
DIAdiscord.js - Imagine an app
Created by ghehusbcbrhjrjxnnxnnxnx on 7/2/2023 in #djs-questions
ReferenceError: interaction is not defined
interaction is not defined
56 replies
DIAdiscord.js - Imagine an app
Created by ghehusbcbrhjrjxnnxnnxnx on 7/2/2023 in #djs-questions
ReferenceError: interaction is not defined
it says the error directly to u
56 replies
DIAdiscord.js - Imagine an app
Created by trplnr on 7/2/2023 in #djs-questions
CombinedPropertyError? when trying to use a function that uses JSDOM to return a string for embed
28 replies
DIAdiscord.js - Imagine an app
Created by trplnr on 7/2/2023 in #djs-questions
CombinedPropertyError? when trying to use a function that uses JSDOM to return a string for embed
Oh the repeated texts is from a console.log i forgot to remove but i removed it and heres the output
28 replies
DIAdiscord.js - Imagine an app
Created by trplnr on 7/2/2023 in #djs-questions
CombinedPropertyError? when trying to use a function that uses JSDOM to return a string for embed
k
28 replies
DIAdiscord.js - Imagine an app
Created by trplnr on 7/2/2023 in #djs-questions
CombinedPropertyError? when trying to use a function that uses JSDOM to return a string for embed
(also when i was testing the api calls and the functions on a separate file it worked fine)
28 replies
DIAdiscord.js - Imagine an app
Created by trplnr on 7/2/2023 in #djs-questions
CombinedPropertyError? when trying to use a function that uses JSDOM to return a string for embed
28 replies
DIAdiscord.js - Imagine an app
Created by trplnr on 7/2/2023 in #djs-questions
CombinedPropertyError? when trying to use a function that uses JSDOM to return a string for embed
28 replies
DIAdiscord.js - Imagine an app
Created by trplnr on 7/2/2023 in #djs-questions
CombinedPropertyError? when trying to use a function that uses JSDOM to return a string for embed
where does the 1,2 and the undefineds come from
28 replies
DIAdiscord.js - Imagine an app
Created by trplnr on 7/2/2023 in #djs-questions
CombinedPropertyError? when trying to use a function that uses JSDOM to return a string for embed
hmm
28 replies
DIAdiscord.js - Imagine an app
Created by trplnr on 7/2/2023 in #djs-questions
CombinedPropertyError? when trying to use a function that uses JSDOM to return a string for embed
28 replies
DIAdiscord.js - Imagine an app
Created by trplnr on 7/2/2023 in #djs-questions
CombinedPropertyError? when trying to use a function that uses JSDOM to return a string for embed
export async function handleWhatIsCommand(interaction) {
const tank = interaction.options.get("tank").value;
const designText = await getAllInfoThenGetText(tank, 'Design')
const technicalText = await getAllInfoThenGetText(tank, 'Technical')

const embedTemplate = new EmbedBuilder()
.setColor(0x3ca4cb)
.setTitle(tank)
.setURL(`https://diepio.fandom.com/wiki/Arras:${tank}`)
.setDescription(
`Default Description, Oh no! You found a bug! This may be caused because I didnt put a description yet or something went wrong. Please report it to @trplnr`
)
.setImage(convertTankToDiepIoWikiImageUrl(tank));
embedTemplate.addFields(
{
name: "Design",
value: designText
},
{
name: "Technical",
value: technicalText
}
);
interaction.reply({ embeds: [embedTemplate] });

}
export async function handleWhatIsCommand(interaction) {
const tank = interaction.options.get("tank").value;
const designText = await getAllInfoThenGetText(tank, 'Design')
const technicalText = await getAllInfoThenGetText(tank, 'Technical')

const embedTemplate = new EmbedBuilder()
.setColor(0x3ca4cb)
.setTitle(tank)
.setURL(`https://diepio.fandom.com/wiki/Arras:${tank}`)
.setDescription(
`Default Description, Oh no! You found a bug! This may be caused because I didnt put a description yet or something went wrong. Please report it to @trplnr`
)
.setImage(convertTankToDiepIoWikiImageUrl(tank));
embedTemplate.addFields(
{
name: "Design",
value: designText
},
{
name: "Technical",
value: technicalText
}
);
interaction.reply({ embeds: [embedTemplate] });

}
28 replies
DIAdiscord.js - Imagine an app
Created by trplnr on 7/2/2023 in #djs-questions
CombinedPropertyError? when trying to use a function that uses JSDOM to return a string for embed
28 replies
DIAdiscord.js - Imagine an app
Created by trplnr on 7/2/2023 in #djs-questions
CombinedPropertyError? when trying to use a function that uses JSDOM to return a string for embed
wdym?
28 replies
DIAdiscord.js - Imagine an app
Created by trplnr on 7/2/2023 in #djs-questions
CombinedPropertyError? when trying to use a function that uses JSDOM to return a string for embed
node 18.16.1
28 replies