Create sacrifice command #225
2 changed files with 5 additions and 5 deletions
|
@ -56,7 +56,7 @@ export default class Sacrifice extends ButtonEvent {
|
||||||
|
|
||||||
await user.Save(User, user);
|
await user.Save(User, user);
|
||||||
|
|
||||||
let description = [
|
const description = [
|
||||||
`Card: ${cardData.card.name}`,
|
`Card: ${cardData.card.name}`,
|
||||||
`Series: ${cardData.series.name}`,
|
`Series: ${cardData.series.name}`,
|
||||||
`Rarity: ${cardRarityString}`,
|
`Rarity: ${cardRarityString}`,
|
||||||
|
@ -78,7 +78,7 @@ export default class Sacrifice extends ButtonEvent {
|
||||||
.setStyle(ButtonStyle.Success)
|
.setStyle(ButtonStyle.Success)
|
||||||
.setDisabled(true),
|
.setDisabled(true),
|
||||||
new ButtonBuilder()
|
new ButtonBuilder()
|
||||||
.setCustomId(`sacrifice cancel`)
|
.setCustomId("sacrifice cancel")
|
||||||
.setLabel("Cancel")
|
.setLabel("Cancel")
|
||||||
.setStyle(ButtonStyle.Secondary)
|
.setStyle(ButtonStyle.Secondary)
|
||||||
.setDisabled(true),
|
.setDisabled(true),
|
||||||
|
@ -111,7 +111,7 @@ export default class Sacrifice extends ButtonEvent {
|
||||||
const cardValue = GetSacrificeAmount(cardData.card.type);
|
const cardValue = GetSacrificeAmount(cardData.card.type);
|
||||||
const cardRarityString = CardRarityToString(cardData.card.type);
|
const cardRarityString = CardRarityToString(cardData.card.type);
|
||||||
|
|
||||||
let description = [
|
const description = [
|
||||||
`Card: ${cardData.card.name}`,
|
`Card: ${cardData.card.name}`,
|
||||||
`Series: ${cardData.series.name}`,
|
`Series: ${cardData.series.name}`,
|
||||||
`Rarity: ${cardRarityString}`,
|
`Rarity: ${cardRarityString}`,
|
||||||
|
@ -133,7 +133,7 @@ export default class Sacrifice extends ButtonEvent {
|
||||||
.setStyle(ButtonStyle.Success)
|
.setStyle(ButtonStyle.Success)
|
||||||
.setDisabled(true),
|
.setDisabled(true),
|
||||||
new ButtonBuilder()
|
new ButtonBuilder()
|
||||||
.setCustomId(`sacrifice cancel`)
|
.setCustomId("sacrifice cancel")
|
||||||
.setLabel("Cancel")
|
.setLabel("Cancel")
|
||||||
.setStyle(ButtonStyle.Secondary)
|
.setStyle(ButtonStyle.Secondary)
|
||||||
.setDisabled(true),
|
.setDisabled(true),
|
||||||
|
|
|
@ -39,7 +39,7 @@ export default class Sacrifice extends Command {
|
||||||
const cardValue = GetSacrificeAmount(cardData.card.type);
|
const cardValue = GetSacrificeAmount(cardData.card.type);
|
||||||
const cardRarityString = CardRarityToString(cardData.card.type);
|
const cardRarityString = CardRarityToString(cardData.card.type);
|
||||||
|
|
||||||
let description = [
|
const description = [
|
||||||
`Card: ${cardData.card.name}`,
|
`Card: ${cardData.card.name}`,
|
||||||
`Series: ${cardData.series.name}`,
|
`Series: ${cardData.series.name}`,
|
||||||
`Rarity: ${cardRarityString}`,
|
`Rarity: ${cardRarityString}`,
|
||||||
|
|
Loading…
Reference in a new issue