Create sacrifice command #225

Merged
Vylpes merged 5 commits from feature/203-sacrifice-command into develop 2024-05-17 21:02:52 +01:00
2 changed files with 5 additions and 5 deletions
Showing only changes of commit 43998fbfc8 - Show all commits

View file

@ -56,7 +56,7 @@ export default class Sacrifice extends ButtonEvent {
await user.Save(User, user);
let description = [
const description = [
`Card: ${cardData.card.name}`,
`Series: ${cardData.series.name}`,
`Rarity: ${cardRarityString}`,
@ -78,7 +78,7 @@ export default class Sacrifice extends ButtonEvent {
.setStyle(ButtonStyle.Success)
.setDisabled(true),
new ButtonBuilder()
.setCustomId(`sacrifice cancel`)
.setCustomId("sacrifice cancel")
.setLabel("Cancel")
.setStyle(ButtonStyle.Secondary)
.setDisabled(true),
@ -111,7 +111,7 @@ export default class Sacrifice extends ButtonEvent {
const cardValue = GetSacrificeAmount(cardData.card.type);
const cardRarityString = CardRarityToString(cardData.card.type);
let description = [
const description = [
`Card: ${cardData.card.name}`,
`Series: ${cardData.series.name}`,
`Rarity: ${cardRarityString}`,
@ -133,7 +133,7 @@ export default class Sacrifice extends ButtonEvent {
.setStyle(ButtonStyle.Success)
.setDisabled(true),
new ButtonBuilder()
.setCustomId(`sacrifice cancel`)
.setCustomId("sacrifice cancel")
.setLabel("Cancel")
.setStyle(ButtonStyle.Secondary)
.setDisabled(true),

View file

@ -39,7 +39,7 @@ export default class Sacrifice extends Command {
const cardValue = GetSacrificeAmount(cardData.card.type);
const cardRarityString = CardRarityToString(cardData.card.type);
let description = [
const description = [
`Card: ${cardData.card.name}`,
`Series: ${cardData.series.name}`,
`Rarity: ${cardRarityString}`,