Skip to content

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed
 

‎packages/plugin-discord/src/messages.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,12 @@ export class MessageManager {
333333
return;
334334
}
335335

336-
await (message.channel as TextChannel).sendTyping();
337-
336+
try {
337+
await (message.channel as TextChannel).sendTyping();
338+
} catch(error) {
339+
logger.warn(`failed to send typing: ${error}`);
340+
}
341+
338342
await this.runtime.databaseAdapter.log({
339343
body: { message, context, response: responseContent },
340344
userId: this.runtime.agentId,

0 commit comments

Comments
 (0)
Please sign in to comment.