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