mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Escape Markdown in all cards
This commit is contained in:
@@ -108,7 +108,7 @@ module.exports = class Player {
|
||||
sendHand(hand, black) {
|
||||
return this.user.send(stripIndents`
|
||||
__**Your hand is:**__
|
||||
${hand.map((card, i) => `**${i + 1}.** ${card}`).join('\n')}
|
||||
${hand.map((card, i) => `**${i + 1}.** ${escapeMarkdown(card)}`).join('\n')}
|
||||
|
||||
**${this.game.blackType} Card:** ${escapeMarkdown(black.text)}
|
||||
**Card Czar:** ${this.game.czar.user.username}
|
||||
|
||||
Reference in New Issue
Block a user