fix: outdated pin & unpin handlers and endpoints

This commit is contained in:
ayntee
2021-01-02 17:10:18 +04:00
parent ae9e14bf25
commit 32c3306bf0
2 changed files with 6 additions and 2 deletions
+2
View File
@@ -31,6 +31,8 @@ export const endpoints = {
`${baseEndpoints.BASE_URL}/channels/${id}/messages/${messageID}`,
CHANNEL_MESSAGES: (id: string) =>
`${baseEndpoints.BASE_URL}/channels/${id}/messages`,
CHANNEL_PIN: (channelID: string, messageID: string) =>
`${baseEndpoints.BASE_URL}/channels/${channelID}/pins/${messageID}`,
CHANNEL_PINS: (id: string) => `${baseEndpoints.BASE_URL}/channels/${id}/pins`,
CHANNEL_BULK_DELETE: (id: string) =>
`${baseEndpoints.BASE_URL}/channels/${id}/messages/bulk-delete`,