follow and cross post endpoints support

This commit is contained in:
Skillz
2020-08-31 15:59:31 -04:00
parent 090921b9e6
commit 7a09d9989e
4 changed files with 41 additions and 0 deletions
+8
View File
@@ -223,3 +223,11 @@ export async function editMessage(
);
return createMessage(result as MessageCreateOptions);
}
export async function publishMessage(channelID: string, messageID: string) {
const data = await RequestManager.post(
endpoints.CHANNEL_MESSAGE_CROSSPOST(channelID, messageID),
) as MessageCreateOptions;
return createMessage(data);
}