diff options
author | Kareem Olim <kareemolim@gmail.com> | 2022-11-19 15:54:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-19 14:54:48 +0100 |
commit | 5ce2dc1bb4ee93f7e5121f684f957eb99ead22b8 (patch) | |
tree | 657d497442011f600ce1d67f9fad2442bb213832 /src/utils | |
parent | 8f2c247f27ad097352904de2bd1035b270315375 (diff) | |
download | Vencord-5ce2dc1bb4ee93f7e5121f684f957eb99ead22b8.tar.gz Vencord-5ce2dc1bb4ee93f7e5121f684f957eb99ead22b8.tar.bz2 Vencord-5ce2dc1bb4ee93f7e5121f684f957eb99ead22b8.zip |
feat(plugin): Read all notifications button (#217)
Co-authored-by: Ven <vendicated@riseup.net>
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/constants.ts | 4 | ||||
-rw-r--r-- | src/utils/discord.ts | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 307de87..7f44ee0 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -136,5 +136,9 @@ export const Devs = Object.freeze({ KraXen72: { name: "KraXen72", id: 379304073515499530n + }, + kemo: { + name: "kemo", + id: 299693897859465228n } }); diff --git a/src/utils/discord.ts b/src/utils/discord.ts index 75fb079..7fc5064 100644 --- a/src/utils/discord.ts +++ b/src/utils/discord.ts @@ -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); +} |