Remove getGuildRoles

This commit is contained in:
Nuckyz 2024-03-12 20:18:44 -03:00
parent 6e363814d1
commit 6a7657de3f
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
10 changed files with 30 additions and 32 deletions

View file

@ -46,7 +46,7 @@ export let ReadStateStore: GenericStore;
export let PresenceStore: GenericStore;
export let PoggerModeSettingsStore: GenericStore;
export let GuildStore: Stores.GuildStore & t.FluxStore;
export let GuildStore: t.GuildStore;
export let UserStore: Stores.UserStore & t.FluxStore;
export let UserProfileStore: GenericStore;
export let SelectedChannelStore: Stores.SelectedChannelStore & t.FluxStore;

View file

@ -17,7 +17,7 @@
*/
import { DraftType } from "@webpack/common";
import { Channel } from "discord-types/general";
import { Channel, Guild, Role } from "discord-types/general";
import { FluxDispatcher, FluxEvents } from "./utils";
@ -172,3 +172,13 @@ export class DraftStore extends FluxStore {
getThreadDraftWithParentMessageId?(arg: any): any;
getThreadSettings(channelId: string): any | null;
}
export class GuildStore extends FluxStore {
getGuild(guildId: string): Guild;
getGuildCount(): number;
getGuilds(): Record<string, Guild>;
getGuildIds(): string[];
getRole(guildId: string, roleId: string): Role;
getRoles(guildId: string): Record<string, Role>;
getAllGuildRoles(): Record<string, Record<string, Role>>;
}