From b595d3ea03d786bcc326a1e8ae775a09fedb9346 Mon Sep 17 00:00:00 2001 From: Violet Scheen Date: Tue, 3 Oct 2023 23:37:24 -0400 Subject: [PATCH] Update discord.go --- discord.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord.go b/discord.go index f6c5433..2a9029f 100644 --- a/discord.go +++ b/discord.go @@ -551,7 +551,7 @@ func (d *DiscordDaemon) cmdInvite(s *dg.Session, i *dg.InteractionCreate, lang s // expmin = mins //} // Need to check whether requestor is linked to the admin account *possibly add Admin bool to DiscordUser struct - requestoremail := GetEmailsKey(requestor.JfID) + requestoremail := d.app.storage.GetEmailsKey(requestor.JellyfinID) if !requestoremail.admin { d.app.err.Printf("User is not admin") }