DawnbrandBots/bastion-bot

/price errors: migrate to new API

Closed this issue · 4 comments

TypeError: Cannot read properties of null (reading 'map')
    at PriceCommand.execute (/src/commands/price.ts:157:8)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task\_queues:96:5)
    at PriceCommand.run (/src/Command.ts:41:20)
    at InteractionListener.run (/src/events/interaction.ts:28:3)
SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at PriceCommand.getPrice (/src/commands/price.ts:109:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at PriceCommand.execute (/src/commands/price.ts:128:19)
    at PriceCommand.run (/src/Command.ts:41:20)
    at InteractionListener.run (/src/events/interaction.ts:32:5)