Discord: add fetch message action

This commit is contained in:
Shadow
2026-01-10 16:38:02 -06:00
parent 786eac1d6f
commit c731a87d07
5 changed files with 87 additions and 0 deletions

View File

@@ -903,6 +903,17 @@ export async function readMessagesDiscord(
)) as APIMessage[];
}
export async function fetchMessageDiscord(
channelId: string,
messageId: string,
opts: DiscordReactOpts = {},
): Promise<APIMessage> {
const rest = resolveDiscordRest(opts);
return (await rest.get(
Routes.channelMessage(channelId, messageId),
)) as APIMessage;
}
export async function editMessageDiscord(
channelId: string,
messageId: string,