1
0
mirror of https://github.com/mgerb/go-discord-bot synced 2026-01-10 09:02:49 +00:00

play sounds from web ui - store uploaded sounds in database

This commit is contained in:
2018-09-12 23:36:44 -05:00
parent 325203cc5e
commit be359f7424
26 changed files with 390 additions and 245 deletions

View File

@@ -6,7 +6,7 @@ import (
"github.com/gin-gonic/gin"
"github.com/mgerb/go-discord-bot/server/config"
"github.com/mgerb/go-discord-bot/server/webserver/discord"
"github.com/mgerb/go-discord-bot/server/webserver/model"
log "github.com/sirupsen/logrus"
"gopkg.in/dgrijalva/jwt-go.v3"
)
@@ -29,7 +29,7 @@ type CustomClaims struct {
}
// GetJWT - get json web token
func GetJWT(user discord.User) (string, error) {
func GetJWT(user model.User) (string, error) {
permissions := PermUser