Skip to content

Commit

Permalink
🚑️ fix: keep the backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Helloyunho committed Oct 17, 2022
1 parent b4926f3 commit 304e9c4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/rest/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<ThreadChannelPayload> {
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.
*/
Expand Down

0 comments on commit 304e9c4

Please sign in to comment.