mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: markdownEscape
This commit is contained in:
1 parent
01b5ec9bc2
commit
5ef1f87236
11 files changed
+75
-26
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import { EmbedBuilder, SlashCommandBuilder } from 'discord.js';
|
||||
import markdownEscape from 'markdown-escape';
|
||||
import { CommandRegistry } from '../behaviors/interactionCreate.js';
|
||||
import { NEGATIVE_COLOR, POSITIVE_COLOR } from '../constants/colors.js';
|
||||
import { BlitzServer } from '../constants/servers.js';
|
||||
@@ -108,7 +109,7 @@ export default {
|
||||
poweredByBlitzStars(
|
||||
new EmbedBuilder()
|
||||
.setTitle(
|
||||
`${data.nickname} is ${
|
||||
`${markdownEscape(data.nickname)} is ${
|
||||
eligible ? '' : 'not '
|
||||
}eligible for ${CLANS[clan].name}`,
|
||||
)
|
||||
@@ -116,10 +117,14 @@ export default {
|
||||
.setDescription(
|
||||
`${
|
||||
eligible
|
||||
? `${data.nickname} meets all the requirements set for ${CLANS[clan].name}.`
|
||||
: `${data.nickname}'s shortcomings for ${
|
||||
? `${markdownEscape(
|
||||
data.nickname,
|
||||
)} meets all the requirements set for ${
|
||||
CLANS[clan].name
|
||||
} (${
|
||||
}.`
|
||||
: `${markdownEscape(
|
||||
data.nickname,
|
||||
)}'s shortcomings for ${CLANS[clan].name} (${
|
||||
clan === 'sklld' ? '30 days stats' : 'career stats'
|
||||
}):\n\n${issues.join('\n')}`
|
||||
}\n\n${blitzLinks(data)}`,
|
||||
|
||||
Reference in new issue
Block a user