mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 16:19:12 +02:00
Escape Markdown in all cards
This commit is contained in:
@@ -108,7 +108,7 @@ module.exports = class Player {
|
|||||||
sendHand(hand, black) {
|
sendHand(hand, black) {
|
||||||
return this.user.send(stripIndents`
|
return this.user.send(stripIndents`
|
||||||
__**Your hand is:**__
|
__**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)}
|
**${this.game.blackType} Card:** ${escapeMarkdown(black.text)}
|
||||||
**Card Czar:** ${this.game.czar.user.username}
|
**Card Czar:** ${this.game.czar.user.username}
|
||||||
|
|||||||
Reference in New Issue
Block a user