Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discord.js TypeError - channel.isText is not a function #173

Closed
Eccleria opened this issue Mar 30, 2023 · 3 comments · Fixed by #174
Closed

Discord.js TypeError - channel.isText is not a function #173

Eccleria opened this issue Mar 30, 2023 · 3 comments · Fixed by #174
Assignees
Labels
bug Fatal issue
Milestone

Comments

@Eccleria
Copy link
Owner

/home/ewibot/ewibot/node_modules/discord.js/src/client/actions/InteractionCreate.js:48
        if (channel && !channel.isText()) return;
                                ^

TypeError: channel.isText is not a function
    at InteractionCreateAction.handle (/home/ewibot/ewibot/node_modules/discord.js/src/client/actions/InteractionCreate.js:48:33)
    at Object.module.exports [as INTERACTION_CREATE] (/home/ewibot/ewibot/node_modules/discord.js/src/client/websocket/handlers/INTERACTION_CREATE.js:4:36)
    at WebSocketManager.handlePacket (/home/ewibot/ewibot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:346:31)
    at WebSocketShard.onPacket (/home/ewibot/ewibot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:482:22)
    at WebSocketShard.onMessage (/home/ewibot/ewibot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:317:10)
    at WebSocket.onMessage (/home/ewibot/ewibot/node_modules/ws/lib/event-target.js:199:18)
    at WebSocket.emit (node:events:513:28)
    at Receiver.receiverOnMessage (/home/ewibot/ewibot/node_modules/ws/lib/websocket.js:1178:20)
    at Receiver.emit (node:events:513:28)
    at Receiver.dataMessage (/home/ewibot/ewibot/node_modules/ws/lib/receiver.js:528:14)
    ```
@Eccleria Eccleria self-assigned this Mar 30, 2023
@Eccleria Eccleria added the bug Fatal issue label Mar 30, 2023
@Eccleria Eccleria linked a pull request Mar 30, 2023 that will close this issue
2 tasks
@Eccleria Eccleria added this to the 4.9.2 milestone Mar 30, 2023
@Eccleria
Copy link
Owner Author

Apparently caused by Discord change to interactions
Fixed in discordjs/discord.js#9203

@Eccleria
Copy link
Owner Author

Eccleria commented Apr 1, 2023

/home/ewibot/ewibot/node_modules/discord.js/src/client/actions/InteractionCreate.js:48
        if (channel && !channel.isText()) return;
                                ^

TypeError: channel.isText is not a function
    at InteractionCreateAction.handle (/home/ewibot/ewibot/node_modules/discord.js/src/client/actions/InteractionCreate.js:48:33)
    at Object.module.exports [as INTERACTION_CREATE] (/home/ewibot/ewibot/node_modules/discord.js/src/client/websocket/handlers/INTERACTION_CREATE.js:4:36)
    at WebSocketManager.handlePacket (/home/ewibot/ewibot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:346:31)
    at WebSocketShard.onPacket (/home/ewibot/ewibot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:482:22)
    at WebSocketShard.onMessage (/home/ewibot/ewibot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:317:10)
    at WebSocket.onMessage (/home/ewibot/ewibot/node_modules/ws/lib/event-target.js:199:18)
    at WebSocket.emit (node:events:513:28)
    at Receiver.receiverOnMessage (/home/ewibot/ewibot/node_modules/ws/lib/websocket.js:1178:20)
    at Receiver.emit (node:events:513:28)
    at Receiver.dataMessage (/home/ewibot/ewibot/node_modules/ws/lib/receiver.js:528:14)
    ```

Should now follow the alternatives suggested in Discord.js Discord server FAQ channel

@Eccleria Eccleria reopened this Apr 1, 2023
@Eccleria
Copy link
Owner Author

Eccleria commented Apr 5, 2023

Was fixed in prod by updating yarn packages

@Eccleria Eccleria closed this as completed Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fatal issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant