qeled / discordie

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

Implements GetChannelMessage Endpoint #63

Closed enebe-nb closed 7 years ago

enebe-nb commented 7 years ago

Implementation for Get Channel Message Endpoint. This allow to fetch message by Id. Use case: If a Reaction event is received and the message is not cached then it will be received as null, but the data Object contains its Id, after considering if more information on the message is needed, this can be fetched from server.

qeled commented 7 years ago

There is actually a reason why I haven't implemented this yet. Also this needs quite a few edits consistency-wise (should probably have the method in IDirectMessageChannel too) so I'll redo it myself.