Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yofukashino committed Oct 21, 2024
1 parent 107b4e9 commit d411669
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/renderer/apis/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ import type {
SendMessageOptionsForReply,
} from "../modules/common/messages";
import icon from "../assets/logo.png";
import { constants, i18n, messages, users } from "../modules/common";
import { constants, fluxDispatcher, i18n, messages, users } from "../modules/common";
import type { Store } from "../modules/common/flux";
import { Logger } from "../modules/logger";
import { filters, getByStoreName, waitForModule } from "../modules/webpack";


const logger = Logger.api("Commands");

let RepluggedUser: User | undefined;
Expand Down Expand Up @@ -147,7 +146,7 @@ async function executeCommand<T extends CommandOptions>(
if ((!result?.result && !result?.embeds) || !currentChannelId) return;

if (result.send) {
if (replyOptions?.messageReference)
if (replyOptions.messageReference)
fluxDispatcher.dispatch({ type: "DELETE_PENDING_REPLY", channelId: currentChannelId });
void messages.sendMessage(
currentChannelId,
Expand Down

0 comments on commit d411669

Please sign in to comment.