Skip to content

πŸ› Bug Report: No Pet Causes Adv To CrashΒ #1388

@Willard21

Description

@Willard21

πŸ‘Ÿ Reproduction steps

Have no pet (due to starting the game before Pet Rock was introduced, and never catching one). Then run /adv

πŸ‘ Expected behavior

Either a level 0 Pet Rock should be granted automatically upon realizing no pet exists, or /adv should account for the possibility of having no pet and not throwing errors.

πŸ‘Ž Actual Behavior

An error is thrown and /adv fails.

πŸ’₯ Error message

TypeError: Cannot read properties of undefined (reading 'disabled')
    at Adv.run (/bin/src/SlashCommands/Commands/Adv/Adv.ts:426:21)
    at originalCommandRunner (/bin/src/Bot.ts:121:18)

🎲 DRPG version

4.18.50

πŸ‘€ Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

πŸ“ Additional context

Reported by <@183178712181637120> (vince321 / Euki) in <#1419089189152231595> (rpg-support > doing /adv but error shows.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-BotArea: Bot, i.e: Related to the botC-BugCategory: This issue is a confirmed bugE-ProductionEnvironment: ProductionF-PetsFeature: Pets

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions