aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorNuckyz <61953774+Nuckyz@users.noreply.github.com>2023-03-19 05:44:11 -0300
committerGitHub <noreply@github.com>2023-03-19 08:44:11 +0000
commitea642d9e901d42f0f5f73ba1f9cfeb3d1e595332 (patch)
treedebe3069ec9bd29f04cc46ee63db771944b91cf3 /src/plugins
parent17c3496542adc9ddfe46e3bc73c0fe7776c30f78 (diff)
downloadVencord-ea642d9e901d42f0f5f73ba1f9cfeb3d1e595332.tar.gz
Vencord-ea642d9e901d42f0f5f73ba1f9cfeb3d1e595332.tar.bz2
Vencord-ea642d9e901d42f0f5f73ba1f9cfeb3d1e595332.zip
Fix #598 (#612)
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/fakeNitro.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/fakeNitro.ts b/src/plugins/fakeNitro.ts
index e9b19ca..580d69e 100644
--- a/src/plugins/fakeNitro.ts
+++ b/src/plugins/fakeNitro.ts
@@ -20,6 +20,7 @@ import { addPreEditListener, addPreSendListener, removePreEditListener, removePr
import { migratePluginSettings, Settings } from "@api/settings";
import { Devs } from "@utils/constants";
import { ApngDisposeOp, getGifEncoder, importApngJs } from "@utils/dependencies";
+import { getCurrentGuild } from "@utils/discord";
import definePlugin, { OptionType } from "@utils/types";
import { findByCodeLazy, findByPropsLazy } from "@webpack";
import { ChannelStore, PermissionStore, UserStore } from "@webpack/common";
@@ -184,7 +185,7 @@ export default definePlugin({
},
get guildId() {
- return window.location.href.split("channels/")[1].split("/")[0];
+ return getCurrentGuild()?.id;
},
get canUseEmotes() {