parent
bb7332cefd
commit
2105de8ca5
@ -0,0 +1,10 @@
|
||||
import { Guild } from "discord-types/general";
|
||||
import { ChannelStore, SelectedChannelStore, GuildStore } from "../webpack/common";
|
||||
|
||||
export function getCurrentChannel() {
|
||||
return ChannelStore.getChannel(SelectedChannelStore.getChannelId());
|
||||
}
|
||||
|
||||
export function getCurrentGuild(): Guild | undefined {
|
||||
return GuildStore.getGuild(getCurrentChannel()?.guild_id);
|
||||
}
|
Loading…
Reference in new issue