From 304e9c4262efb3e66f2b45b504a99b41f4a29dee Mon Sep 17 00:00:00 2001 From: Helloyunho Date: Mon, 17 Oct 2022 21:15:19 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F=20fix:=20keep=20the=20bac?= =?UTF-8?q?kwards=20compatibility?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rest/endpoints.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/rest/endpoints.ts b/src/rest/endpoints.ts index abba0f93..1ed55dea 100644 --- a/src/rest/endpoints.ts +++ b/src/rest/endpoints.ts @@ -1379,6 +1379,22 @@ The `emoji` must be [URL Encoded](https://en.wikipedia.org/wiki/Percent-encoding ) } + // Exist for backwards compatibility + /** + * Creates a new public thread from an existing message. Returns a channel on success, and a 400 BAD REQUEST on invalid parameters. Fires a Thread Create Gateway event. + */ + async startPublicThread( + channelId: string, + messageId: string, + payload: CreateThreadPayload + ): Promise { + return await this.startPublicThreadFromMessage( + channelId, + messageId, + payload + ) + } + /** * Creates a new thread from an existing message. Returns a channel on success, and a 400 BAD REQUEST on invalid parameters. Fires a Thread Create Gateway event. */