add lots of group dm features (#1208)

* group dm stuff

* minor doc changes
This commit is contained in:
Gus Caplan
2017-02-22 14:33:20 -06:00
committed by Amish Shah
parent 5c2086b351
commit 4c9d8d6cd7
4 changed files with 76 additions and 0 deletions

View File

@@ -103,6 +103,7 @@ const Endpoints = exports.Endpoints = {
},
me: `${API}/users/@me`,
meGuild: (guildID) => `${Endpoints.me}/guilds/${guildID}`,
meChannels: `${API}/users/@me/channels`,
meMentions: (limit, roles, everyone, guildID) =>
`users/@me/mentions?limit=${limit}&roles=${roles}&everyone=${everyone}${guildID ? `&guild_id=${guildID}` : ''}`,
relationships: (userID) => `${Endpoints.user(userID)}/relationships`,
@@ -143,6 +144,8 @@ const Endpoints = exports.Endpoints = {
channelWebhooks: (channelID) => `${Endpoints.channel(channelID)}/webhooks`,
channelSearch: (channelID) => `${Endpoints.channelMessages(channelID)}/search`,
dmChannelRecipient: (channelID, recipientID) => `${Endpoints.channel(channelID)}/recipients/${recipientID}`,
// message reactions
messageReactions: (channelID, messageID) => `${Endpoints.channelMessage(channelID, messageID)}/reactions`,
messageReaction: