#New error magically appeared xD

1 messages · Page 1 of 1 (latest)

chilly rampart

About to 40 minutes ago my bot crashed with a very uncommon error. Then tried to restart it and now it keeps crashing with same error. No changes in code were made, so my first thought is that discord updated something in his API.

Here is the error code

C:\Users\Leona\Desktop\dashboard_bot\node_modules\discord.js\src\client\actions\InteractionCreate.js:50
        if (channel && !channel.isTextBased()) return;
                                ^

TypeError: channel.isTextBased is not a function
    at InteractionCreateAction.handle (C:\Users\Leona\Desktop\dashboard_bot\node_modules\discord.js\src\client\actions\InteractionCreate.js:50:33)
    at Object.module.exports [as INTERACTION_CREATE] (C:\Users\Leona\Desktop\dashboard_bot\node_modules\discord.js\src\client\websocket\handlers\INTERACTION_CREATE.js:4:36)

Anyone knows what could happened? The error is inside the node modules