From 86af3a089cbd3e73ac74a6e652dc89af6504d9f3 Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Sun, 2 May 2021 13:42:15 +0200 Subject: [PATCH] add: START_THREAD endpoint --- src/util/constants.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util/constants.ts b/src/util/constants.ts index 90bb371ec..fae7f4e48 100644 --- a/src/util/constants.ts +++ b/src/util/constants.ts @@ -78,6 +78,10 @@ export const endpoints = { // Bots SHALL NOT use this endpoint but they can CHANNEL_TYPING: (channelId: string) => `${CHANNEL_BASE(channelId)}/typing`, + // Thread Endpoints + START_THREAD: (channelId: string, messageId: string) => + `${endpoints.CHANNEL_MESSAGE(channelId, messageId)}/threads`, + // Guild Endpoints GUILDS: `${baseEndpoints.BASE_URL}/guilds`, GUILD_AUDIT_LOGS: (guildId: string) => `${GUILDS_BASE(guildId)}/audit-logs`,