diff --git a/src/bot/messaging/CommandInteractionMessagingTunnel.ts b/src/bot/messaging/CommandInteractionMessagingTunnel.ts index f53f8083..1253fc73 100644 --- a/src/bot/messaging/CommandInteractionMessagingTunnel.ts +++ b/src/bot/messaging/CommandInteractionMessagingTunnel.ts @@ -55,7 +55,7 @@ export default class CommandInteractionMessagingTunnel extends MessagingTunnel { /** * @inheritdoc */ - public async replyWith(answer: MessagingAnswer, _direct?: boolean): Promise { + public async replyWith(answer: MessagingAnswer, direct?: boolean): Promise { // Fetch current reply if deferred externally and not register in this tunnel if (!this.reply && this.interaction.deferred) { this._reply = (await this.interaction.fetchReply()) as Message; @@ -69,7 +69,8 @@ export default class CommandInteractionMessagingTunnel extends MessagingTunnel { this._reply = (await this.interaction.reply({ ...answer, - fetchReply: true + fetchReply: true, + ephemeral: direct })) as Message; return this._reply; diff --git a/src/bot/messaging/MessagingTunnel.ts b/src/bot/messaging/MessagingTunnel.ts index 07d5b0c3..5e8c253b 100644 --- a/src/bot/messaging/MessagingTunnel.ts +++ b/src/bot/messaging/MessagingTunnel.ts @@ -37,7 +37,7 @@ export default abstract class MessagingTunnel { * Replies something through the messaging tunnel. * * @param answer anwser to reply with - * @param direct true if the reply should be direct + * @param direct true if the reply should be direct and ephemeral */ public abstract replyWith(answer: MessagingAnswer, direct?: boolean): Promise;