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:
parent
729548334d
commit
49dfac514d
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user