Fix droprarity and dropnumber commands (#431)
All checks were successful
Test / build (push) Successful in 20s
All checks were successful
Test / build (push) Successful in 20s
- Fix the droprarity and dropnumber commands with the changes previously made regarding image urls - Add a `CatchError` function to the app logger to easily send caught errors to the error logs - Add choices to the droprarity command to make them easier to select #429 Reviewed-on: #431 Reviewed-by: VylpesTester <tester@vylpes.com> Co-authored-by: Ethan Lane <ethan@vylpes.com> Co-committed-by: Ethan Lane <ethan@vylpes.com>
This commit is contained in:
parent
ad34cc7b7f
commit
9b34bc65a7
4 changed files with 83 additions and 56 deletions
|
@ -9,6 +9,29 @@ export enum CardRarity {
|
|||
Legendary,
|
||||
}
|
||||
|
||||
export const CardRarityChoices = [
|
||||
{
|
||||
name: "Bronze",
|
||||
value: "bronze",
|
||||
},
|
||||
{
|
||||
name: "Silver",
|
||||
value: "silver",
|
||||
},
|
||||
{
|
||||
name: "Gold",
|
||||
value: "gold",
|
||||
},
|
||||
{
|
||||
name: "Manga",
|
||||
value: "manga",
|
||||
},
|
||||
{
|
||||
name: "Legendary",
|
||||
value: "legendary",
|
||||
},
|
||||
];
|
||||
|
||||
export function CardRarityToString(rarity: CardRarity): string {
|
||||
switch (rarity) {
|
||||
case CardRarity.Unknown:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue