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

TypeError: bot.sendMessage is not a function #1

Open
BrunoMonteiro92 opened this issue Oct 8, 2017 · 0 comments
Open

TypeError: bot.sendMessage is not a function #1

BrunoMonteiro92 opened this issue Oct 8, 2017 · 0 comments

Comments

@BrunoMonteiro92
Copy link

BrunoMonteiro92 commented Oct 8, 2017

After running it, when I write liftoff, it gives me this error:


bot.sendMessage(authorChannel, text);
      ^

TypeError: bot.sendMessage is not a function
    at sendMessage (C:\Users\-Bruno\Documents\GitHub\Samplebot\index.js:70:7)
    at C:\Users\-Bruno\Documents\GitHub\Samplebot\index.js:169:11
    at Map.forEach (native)
    at Client.<anonymous> (C:\Users\-Bruno\Documents\GitHub\Samplebot\index.js:159:14)
    at emitOne (events.js:96:13)
    at Client.emit (events.js:188:7)
    at MessageCreateHandler.handle (C:\Users\-Bruno\node_modules\discord.js\src\client\websocket\packets\handlers\MessageCreate.js:9:34)
    at WebSocketPacketManager.handle (C:\Users\-Bruno\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:103:65)
    at WebSocketConnection.onPacket (C:\Users\-Bruno\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:330:35)
    at WebSocketConnection.onMessage (C:\Users\-Bruno\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:293:17)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant