1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-12-23 01:20:11 +00:00

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

View File

@ -551,6 +551,10 @@ func (d *DiscordDaemon) cmdInvite(s *dg.Session, i *dg.InteractionCreate, lang s
// expmin = mins // expmin = mins
//} //}
// Need to check whether requestor is linked to the admin account *possibly add Admin bool to DiscordUser struct // 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 // 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) //d.app.debug.Println("Generating new invite with options: %s: %i: %s: %s", invuser, expmin, profile, label)
currentTime := time.Now() currentTime := time.Now()