Documentation ¶
Index ¶
- func Setup() error
- type AttendedEvent
- type Demerit
- type GameplayType
- type Member
- func (m *Member) Delete() error
- func (m *Member) GetOnboardingMessage() *discordgo.Message
- func (m *Member) GetTrueNick(discordMember *discordgo.Member) string
- func (m *Member) GiveDemerit(reason string, who *Member) error
- func (m *Member) GiveMerit(reason string, who *Member) error
- func (m *Member) IsAdmin() bool
- func (m *Member) IsRanked() bool
- func (m *Member) Login(code string) error
- func (m *Member) Save() error
- func (m *Member) ToMap() map[string]interface{}
- type MemberError
- type Merit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AttendedEvent ¶
type GameplayType ¶ added in v1.5.7
type GameplayType string
const ( Unknown GameplayType = "unknown" BountyHunting GameplayType = "bounty_hunting" Engineering GameplayType = "engineering" Exporation GameplayType = "exporation" FpsCombat GameplayType = "fps_combat" Hauling GameplayType = "hauling" Medical GameplayType = "medical" Mining GameplayType = "mining" Reconnaissance GameplayType = "reconnaissance" Racing GameplayType = "racing" Scrapping GameplayType = "scrapping" ShipCrew GameplayType = "ship_crew" ShipCombat GameplayType = "ship_combat" Trading GameplayType = "trading" )
func ToGameplayType ¶ added in v1.5.7
func ToGameplayType(s string) GameplayType
func (GameplayType) String ¶ added in v1.5.7
func (g GameplayType) String() string
type Member ¶
type Member struct { Id string `json:"id" bson:"_id"` Name string `json:"name" bson:"name"` Rank ranks.Rank `json:"rank" bson:"rank"` Notes string `json:"notes" bson:"notes"` PrimaryOrg string `json:"primary_org" bson:"primary_org"` RSIMember bool `json:"rsi_member" bson:"rsi_member"` BadAffiliation bool `json:"bad_affiliation" bson:"bad_affiliation"` Affilations []string `json:"affiliations" bson:"affilations"` Avatar string `json:"avatar" bson:"avatar"` Updated time.Time `json:"updated" bson:"updated"` Validated bool `json:"validated" bson:"validated"` ValidationCode string `json:"validation_code" bson:"validation_code"` Joined time.Time `json:"joined" bson:"joined"` Suffix string `json:"suffix" bson:"suffix"` IsBot bool `json:"is_bot" bson:"is_bot"` IsAlly bool `json:"is_ally" bson:"is_ally"` IsAffiliate bool `json:"is_affiliate" bson:"is_affiliate"` IsGuest bool `json:"is_guest" bson:"is_guest"` Merits []*Merit `json:"merits" bson:"merits"` Demerits []*Demerit `json:"demerits" bson:"demerits"` // onboarding info OnboardedAt *time.Time `json:"onboarded_at" bson:"onboarded_at"` Age int `json:"age" bson:"age"` Pronouns string `json:"pronouns" bson:"pronouns"` Playtime int `json:"playtime" bson:"playtime"` Gameplay []GameplayType `json:"gamplay" bson:"gameplay"` Recruiter *Member `json:"recruiter" bson:"recruiter"` ChannelId string `json:"channel_id" bson:"channel_id"` MessageId string `json:"message_id" bson:"message_id"` LeftAt *time.Time `json:"left_at" bson:"left_at"` FoundBy string `json:"found_by" bson:"found_by"` TimeZone string `json:"time_zone" bson:"time_zone"` Other string `json:"other" bson:"other"` LegacyAge string `json:"legacy_age" bson:"legacy_age"` LegacyPlaytime string `json:"legacy_playtime" bson:"legacy_playtime"` LegacyGamplay string `json:"legacy_gamplay" bson:"legacy_gamplay"` LegacyRecruiter string `json:"legacy_recruiter" bson:"legacy_recruiter"` LegacyOther string `json:"legacy_other" bson:"legacy_other"` }
func (*Member) GetOnboardingMessage ¶
type MemberError ¶
type MemberError error
var (
MemberNotFound MemberError = errors.New("member not found")
)
Click to show internal directories.
Click to hide internal directories.