qeled / discordie

Predictable JavaScript abstractions for Discord API.
https://qeled.github.io/discordie/
BSD 2-Clause "Simplified" License
190 stars 45 forks source link

Changed reply function? #39

Closed ghost closed 8 years ago

ghost commented 8 years ago

Is there a new update where you changed the reply function? I use e.message.reply(...) but I doesn't send anything. The exact same code worked 15-20 hours ago. Also, I don't get any error message or crash and the code is being ran: I have a console.log(...) in the same block.

Sorry if I'm being too specific.

ghost commented 8 years ago

Apparently my token was automatically changed for some reason.

ghost commented 8 years ago

But updating token information didn't fix it...

qeled commented 8 years ago

Discord started to force prefixed bot tokens recently. You're probably running it on an old version of the library, automatic bot token detection was introduced 3 weeks ago in version 0.8.0.

If updating is not an option right now, in older versions (0.4.0+) you should be able to specify it manually with:

var client = new Discordie();
client.bot = true;
ghost commented 8 years ago

Thank you.

Using client.bot = true actually fixed it. Although I think it's very strange, since it worked all fine yesterday.