Update GuildStore -> GuildRoleStore
This commit is contained in:
parent
864ee7c7ad
commit
65f41cb7bd
11 changed files with 30 additions and 22 deletions
|
|
@ -12,7 +12,7 @@ import { Devs } from "@utils/constants";
|
|||
import { getCurrentGuild, openImageModal } from "@utils/discord";
|
||||
import definePlugin, { OptionType } from "@utils/types";
|
||||
import { findByPropsLazy } from "@webpack";
|
||||
import { GuildStore, Menu, PermissionStore } from "@webpack/common";
|
||||
import { GuildRoleStore, Menu, PermissionStore } from "@webpack/common";
|
||||
|
||||
const GuildSettingsActions = findByPropsLazy("open", "selectRole", "updateGuild");
|
||||
|
||||
|
|
@ -80,7 +80,7 @@ export default definePlugin({
|
|||
const guild = getCurrentGuild();
|
||||
if (!guild) return;
|
||||
|
||||
const role = GuildStore.getRole(guild.id, id);
|
||||
const role = GuildRoleStore.getRole(guild.id, id);
|
||||
if (!role) return;
|
||||
|
||||
if (role.colorString) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue