izy521 / discord.io

A small, single-file library for creating DiscordApp clients from Node.js or the browser
https://discord.gg/0MvHMfHcTKVVmIGP
MIT License
535 stars 154 forks source link

Problem with sendMessage? #257

Open chuman72486 opened 6 years ago

chuman72486 commented 6 years ago

I'm new to using the discord.io and it took me a while to get my bot to at least post basic messages, but it seems to be having some issues. First, I can't get embeds to work. I've checked my code and it looks right, but when my bot sends its message, only the plain text part is displayed, no embed content. Second, even in the plain text message, if I use the code for one of my server's emoji, it just posts the text, doesn't display the emoji. Is there something I need to do to make it show the image?

chuman72486 commented 6 years ago

Ok, so the embed issue was sorted out. I needed to give the bot permission to embed links. This doesn't seem to have corrected the emoji issue though...

CheweyZ commented 6 years ago

make sure your sending emojis in the correct form and also your bot is in the server to find an emojis correct form (for custom one) put a \ directly in front of it when sending this will show the correct text to use

ghost commented 5 years ago

@chuman72486 Could you reveal a sample of your code (preferably the part where the issue occurs). That would help us pinpoint the issue.