feat(plugin): Read all notifications button (#217)

Co-authored-by: Ven <vendicated@riseup.net>
This commit is contained in:
Kareem Olim 2022-11-19 15:54:48 +02:00 committed by GitHub
parent 8f2c247f27
commit 5ce2dc1bb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 186 additions and 2 deletions

View file

@ -136,5 +136,9 @@ export const Devs = Object.freeze({
KraXen72: {
name: "KraXen72",
id: 379304073515499530n
},
kemo: {
name: "kemo",
id: 299693897859465228n
}
});

View file

@ -18,7 +18,7 @@
import { Guild } from "discord-types/general";
import { ChannelStore, GuildStore,SelectedChannelStore } from "../webpack/common";
import { ChannelStore, GuildStore, PrivateChannelsStore, SelectedChannelStore } from "../webpack/common";
export function getCurrentChannel() {
return ChannelStore.getChannel(SelectedChannelStore.getChannelId());
@ -27,3 +27,7 @@ export function getCurrentChannel() {
export function getCurrentGuild(): Guild | undefined {
return GuildStore.getGuild(getCurrentChannel()?.guild_id);
}
export function openPrivateChannel(userId: string) {
PrivateChannelsStore.openPrivateChannel(userId);
}