mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 21:18:28 +00:00
fix: align draft/outbound typings and tests
This commit is contained in:
@@ -114,7 +114,9 @@ export function createDiscordDraftStream(params: {
|
||||
streamMessageId = undefined;
|
||||
},
|
||||
isValidMessageId: (value): value is string => typeof value === "string",
|
||||
deleteMessage: (messageId) => rest.delete(Routes.channelMessage(channelId, messageId)),
|
||||
deleteMessage: async (messageId) => {
|
||||
await rest.delete(Routes.channelMessage(channelId, messageId));
|
||||
},
|
||||
warn: params.warn,
|
||||
warnPrefix: "discord stream preview cleanup failed",
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user