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

IDirectMessageChannel -> recipients does not match #109

Open
krolig opened this issue Oct 10, 2017 · 3 comments
Open

IDirectMessageChannel -> recipients does not match #109

krolig opened this issue Oct 10, 2017 · 3 comments

Comments

@krolig
Copy link

krolig commented Oct 10, 2017

I send a private message to the channel "IDirectMessageChannel", but the recipients of the sender.

@Edsardio
Copy link

Can you share some code please?

@krolig
Copy link
Author

krolig commented Oct 14, 2017

var Discordie = require('discordie');
var client = new Discordie({autoReconnect: true});

client.Dispatcher.on('MESSAGE_CREATE', e => {
console.log(client.DirectMessageChannels.find(ch => ch.id == e.message.channel_id));
});

https://i.imgur.com/ifbGW1H.png

@Edsardio
Copy link

First of all this is risky, the bot may be getting a message from a guild (server) and then this won't work, but I'm not really seeing what's going wrong can you please explain your expected outcome?

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

2 participants