Discord: Fix GetUsers, add invite messages
The "Send to" box on the invite tab now accepts username#discriminator, and a search icon has been added which opens a search window similar to the one on the accounts tab. DiscordDaemon.GetUsers was also very broken and wouldn't work with full username#discriminator, that's been fixed.
This commit is contained in:
@@ -258,8 +258,8 @@ func (app *appContext) InviteProxy(gc *gin.Context) {
|
||||
}
|
||||
return
|
||||
}
|
||||
email := app.storage.invites[code].Email
|
||||
if strings.Contains(email, "Failed") {
|
||||
email := app.storage.invites[code].SendTo
|
||||
if strings.Contains(email, "Failed") || !strings.Contains(email, "@") {
|
||||
email = ""
|
||||
}
|
||||
data := gin.H{
|
||||
|
||||
Reference in New Issue
Block a user