From 107140a4c10cb59d8fc7ec0bbecc80152855343b Mon Sep 17 00:00:00 2001 From: Inbestigator Date: Thu, 21 Mar 2024 21:03:07 -0700 Subject: [PATCH] Fixed using globalname --- src/plugins/bypassDND/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/bypassDND/index.tsx b/src/plugins/bypassDND/index.tsx index 5303de5cb..c94b77026 100644 --- a/src/plugins/bypassDND/index.tsx +++ b/src/plugins/bypassDND/index.tsx @@ -44,11 +44,11 @@ async function showNotification(message: Message, guildId: string | undefined): }); message.content = message.content.replace(userRegex, (match, userId: string) => { - return `@${UserStore.getUser(userId)?.globalName}`; + return `@${(UserStore.getUser(userId) as any).globalName}`; }); await Notifications.showNotification({ - title: `${message.author.globalName} ${guildId ? `(#${channel?.name}, ${ChannelStore.getChannel(channel?.parent_id)?.name})` : ""}`, + title: `${(message.author as any).globalName} ${guildId ? `(#${channel?.name}, ${ChannelStore.getChannel(channel?.parent_id)?.name})` : ""}`, body: message.content, icon: UserStore.getUser(message.author.id).getAvatarURL(undefined, undefined, false), onClick: function (): void {