Added Sanitization to InfoChannel

This commit is contained in:
DeSqBlocki
2024-12-21 17:59:56 +01:00
parent aa31e8f5a0
commit 641788dd6e
+1 -1
View File
@@ -170,7 +170,7 @@ async function InfoChannel(interaction) {
tags: streamData.data[0].tags
}
const embed = new EmbedBuilder()
.setTitle(`${liveData.streamer} is live!`)
.setTitle(`${escapeMarkdown(liveData.streamer)} is live!`)
.setDescription(`They're playing ${liveData.game}`)
.addFields(
{ name: '\u200B', value: `${liveData.title}` })