qeled / discordie

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

Feature request for .sendCode() #46

Open ghost opened 8 years ago

ghost commented 8 years ago

Feature request for a .sendMessage() clone that will send contents as a code block.

channel.sendCode(content | Array, format)

E.g. channel.sendCode('Hello World', 'xl');

KeineLimonade commented 7 years ago

This woud be rather unnecessary because of the markdown Discord supports nativly.

Take a look here

TTtie commented 7 years ago

Make it yourself, OK?

Ryu945 commented 7 years ago

The problem with making this a command is that to get the fidelity on how you want to send code, you are basically specifying details to the same level of using ``` or `` in a sendMessage command anyway.