parent
17c3496542
commit
ea642d9e90
1 changed files with 2 additions and 1 deletions
|
@ -20,6 +20,7 @@ import { addPreEditListener, addPreSendListener, removePreEditListener, removePr
|
||||||
import { migratePluginSettings, Settings } from "@api/settings";
|
import { migratePluginSettings, Settings } from "@api/settings";
|
||||||
import { Devs } from "@utils/constants";
|
import { Devs } from "@utils/constants";
|
||||||
import { ApngDisposeOp, getGifEncoder, importApngJs } from "@utils/dependencies";
|
import { ApngDisposeOp, getGifEncoder, importApngJs } from "@utils/dependencies";
|
||||||
|
import { getCurrentGuild } from "@utils/discord";
|
||||||
import definePlugin, { OptionType } from "@utils/types";
|
import definePlugin, { OptionType } from "@utils/types";
|
||||||
import { findByCodeLazy, findByPropsLazy } from "@webpack";
|
import { findByCodeLazy, findByPropsLazy } from "@webpack";
|
||||||
import { ChannelStore, PermissionStore, UserStore } from "@webpack/common";
|
import { ChannelStore, PermissionStore, UserStore } from "@webpack/common";
|
||||||
|
@ -184,7 +185,7 @@ export default definePlugin({
|
||||||
},
|
},
|
||||||
|
|
||||||
get guildId() {
|
get guildId() {
|
||||||
return window.location.href.split("channels/")[1].split("/")[0];
|
return getCurrentGuild()?.id;
|
||||||
},
|
},
|
||||||
|
|
||||||
get canUseEmotes() {
|
get canUseEmotes() {
|
||||||
|
|
Loading…
Reference in a new issue