Don't allow everyone to be staff members
This commit is contained in:
parent
caeafa1485
commit
c2239ef882
@ -29,6 +29,11 @@ func AddMember(ctx *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if entityType == entityTypeRole && snowflake == guildId {
|
||||||
|
ctx.JSON(400, utils.ErrorStr("You cannot add the @everyone role as staff"))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
teamId := ctx.Param("teamid")
|
teamId := ctx.Param("teamid")
|
||||||
if teamId == "default" {
|
if teamId == "default" {
|
||||||
addDefaultMember(ctx, guildId, snowflake, entityType)
|
addDefaultMember(ctx, guildId, snowflake, entityType)
|
||||||
|
@ -37,7 +37,7 @@ func FromArchiveMessages(messages []message.Message, ticketId int) Payload {
|
|||||||
users[snowflake] = User{
|
users[snowflake] = User{
|
||||||
Avatar: msg.Author.AvatarUrl(256),
|
Avatar: msg.Author.AvatarUrl(256),
|
||||||
Username: msg.Author.Username,
|
Username: msg.Author.Username,
|
||||||
Discriminator: msg.Author.Discriminator,
|
Discriminator: fmt.Sprintf("%04d", msg.Author.Discriminator),
|
||||||
Badge: badge,
|
Badge: badge,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user