added fixture scheduling
This commit is contained in:
@@ -19,6 +19,13 @@ type Player struct {
|
||||
User *User `bun:"rel:belongs-to,join:user_id=id" json:"-"`
|
||||
}
|
||||
|
||||
func (p *Player) DisplayName() string {
|
||||
if p.User != nil {
|
||||
return p.User.Username
|
||||
}
|
||||
return p.Name
|
||||
}
|
||||
|
||||
// NewPlayer creates a new player in the database. If there is an existing user with the same
|
||||
// discordID, it will automatically link that user to the player
|
||||
func NewPlayer(ctx context.Context, tx bun.Tx, discordID string, audit *AuditMeta) (*Player, error) {
|
||||
|
||||
Reference in New Issue
Block a user