Update discord.go

This commit is contained in:
Violet Scheen 2023-10-03 23:37:24 -04:00 committed by GitHub
parent 49dfac514d
commit b595d3ea03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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")
}