Update discord.go

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

View File

@ -551,6 +551,10 @@ 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)
if !requestoremail.admin {
d.app.err.Printf("User is not admin")
}
// variation of app.GenerateInvite, some parts commented to potentially add back in later with the other options
//d.app.debug.Println("Generating new invite with options: %s: %i: %s: %s", invuser, expmin, profile, label)
currentTime := time.Now()