diff --git a/src/message.ts b/src/message.ts index 104ca18..a9ea364 100644 --- a/src/message.ts +++ b/src/message.ts @@ -83,13 +83,20 @@ export default class Message { await sleep(2000); } - return await this.ai.post({ + const postData = { replyId: this.note.id, text: text, fileIds: opts?.file ? [opts?.file.id] : undefined, cw: opts?.cw, renoteId: opts?.renote - }); + }; + + // DM以外は普通に返信し、DMの場合はDMで返信する + if (this.note.visibility != 'specified') { + return await this.ai.post(postData); + } else { + return await this.ai.sendMessage(this.userId, postData); + } } @bindThis