Git Product home page Git Product logo

Comments (10)

eartharoid avatar eartharoid commented on August 16, 2024

Have you set the id of logChannel in your config? Make sure the channel exists if you have.

from bot.

DaniloL88 avatar DaniloL88 commented on August 16, 2024

Yes, I have but it's private

from bot.

eartharoid avatar eartharoid commented on August 16, 2024

The bot needs read & send messages permissions in that channel.

from bot.

DaniloL88 avatar DaniloL88 commented on August 16, 2024

Yes I know, but if he hasn't entered, how can I give it to him? Do I put it directly from the bot creation on Discord?

EDIT: Putted a new channel ID of a public channel and still doesn't work.

from bot.

eartharoid avatar eartharoid commented on August 16, 2024

Have you not invited the bot to the server?
Invite the bot with this link: https://discord.com/oauth2/authorize?client_id=ID-OF-YOUR-BOT&permissions=27664&scope=bot but change ID-OF-YOUR-BOT to the id from https://discord.com/developers/applications/

from bot.

DaniloL88 avatar DaniloL88 commented on August 16, 2024

The bot wasn't in the Discord Server, it was my bad. But now I've another error (It has all permissions):

TypeError: Cannot read property 'member' of undefined
at Client.client.once (/home/ticketbot/index.js:109:40)
at Object.onceWrapper (events.js:286:20)
at Client.emit (events.js:203:15)
at WebSocketConnection.triggerReady (/home/ticketbot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:128:17)
at WebSocketConnection.checkIfReady (/home/ticketbot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:144:61)
at GuildCreateHandler.handle (/home/ticketbot/node_modules/discord.js/src/client/websocket/packets/handlers/GuildCreate.js:13:31)
at WebSocketPacketManager.handle (/home/ticketbot/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:108:65)
at WebSocketConnection.onPacket (/home/ticketbot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:336:35)
at WebSocketConnection.onMessage (/home/ticketbot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:299:17)
at WebSocket.onMessage (/home/ticketbot/node_modules/ws/lib/event-target.js:120:16)

from bot.

eartharoid avatar eartharoid commented on August 16, 2024

Make sure you have discord.js v11 not v12: npm i [email protected]

from bot.

DaniloL88 avatar DaniloL88 commented on August 16, 2024

Same problem

from bot.

DaniloL88 avatar DaniloL88 commented on August 16, 2024

Another question: can we talk in Discord? Danilo#1062

from bot.

eartharoid avatar eartharoid commented on August 16, 2024

You don't exist
image

Join my support server: https://discord.gg/pXc9vyC

from bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.