This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,21 @@
// Metro module 11206 (f11207).
import { useMemo } from "react";
import GuildStore from "../../../stores/GuildStore";
export function getCommandContext(a0) {
return a0.type === "contextless" ? {
channel: void 0,
guild: void 0
} : {
channel: a0.channel,
guild: GuildStore.getGuild(a0.channel.guild_id)
};
}
export function useCommandContext(a0) {
return useMemo(() => a0.type === "contextless" ? {
channel: void 0,
guild: void 0
} : {
channel: a0.channel,
guild: GuildStore.getGuild(a0.channel.guild_id)
}, [a0]);
}