Documentation
¶
Index ¶
- type BumpStatus
- type DataLocation
- type GuildData
- type GuildDataConfig
- type GuildDataRolePanel
- type GuildDataUserLevel
- type MessageSuffix
- type MessageSuffixRuleType
- type RolePanelV2
- type RolePanelV2Config
- type RolePanelV2Edit
- type RolePanelV2EditDB
- type RolePanelV2Place
- type RolePanelV2Role
- type RolePanelV2Type
- type UserData
- type UserDataLevel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BumpStatus ¶
type BumpStatus struct { BumpEnabled bool `json:"bump_enabled"` BumpChannel *snowflake.ID `json:"bump_channel"` BumpRole *snowflake.ID `json:"bump_role"` BumpMessage [2]string `json:"bump_message"` BumpRemind [2]string `json:"bump_remind"` LastBump time.Time `json:"last_bump"` LastBumpChannel *snowflake.ID `json:"last_bump_channel"` UpEnabled bool `json:"up_enabled"` UpChannel *snowflake.ID `json:"up_channel"` UpRole *snowflake.ID `json:"up_role"` UpMessage [2]string `json:"up_message"` UpRemind [2]string `json:"up_remind"` LastUp time.Time `json:"last_up"` LastUpChannel *snowflake.ID `json:"last_up_channel"` BumpCountMap map[snowflake.ID]uint64 `json:"bump_count_map"` UpCountMap map[snowflake.ID]uint64 `json:"up_count_map"` }
type DataLocation ¶
func (*DataLocation) MarshalJSON ¶
func (u *DataLocation) MarshalJSON() ([]byte, error)
func (*DataLocation) UnmarshalJSON ¶
func (u *DataLocation) UnmarshalJSON(b []byte) error
type GuildData ¶
type GuildData struct { ID snowflake.ID `json:"id"` RolePanel map[uuid.UUID]GuildDataRolePanel `json:"role_panel"` RolePanelLimit int `json:"role_panel_limit"` UserLevels map[snowflake.ID]GuildDataUserLevel `json:"user_levels"` Config GuildDataConfig `json:"config"` BumpStatus BumpStatus `json:"bump_status"` MCStatusPanel map[uuid.UUID]string `json:"mc_status_panel"` MCStatusPanelName map[string]int `json:"mc_status_panel_name"` MCStatusPanelMax int `json:"mc_status_panel_max"` UserLevelExcludeChannels map[snowflake.ID]string `json:"user_level_exclude_channels"` RolePanelV2 map[uuid.UUID]string `json:"role_panel_v2"` RolePanelV2Name map[string]int `json:"role_panel_v2_name"` RolePanelV2Placed map[string]uuid.UUID `json:"role_panel_v2_placed"` RolePanelV2PlacedConfig map[string]RolePanelV2Config `json:"role_panel_v2_placed_config"` RolePanelV2Limit int `json:"role_panel_v2_limit"` RolePanelV2Editing map[uuid.UUID]uuid.UUID `json:"role_panel_v2_editing"` RolePanelV2EditingEmoji map[uuid.UUID][2]snowflake.ID `json:"role_panel_v2_emoji"` DataVersion *int `json:"data_version,omitempty"` }
func (*GuildData) UnmarshalJSON ¶
type GuildDataConfig ¶
type GuildDataConfig struct { LevelUpMessage string `json:"level_up_message"` LevelUpMessageChannel *snowflake.ID `json:"level_up_message_channel"` }
type GuildDataRolePanel ¶
type GuildDataRolePanel struct {
OnList bool `json:"on_list"`
}
type GuildDataUserLevel ¶
type GuildDataUserLevel struct { UserDataLevel MessageCount int64 `json:"message_count"` LastMessageTime time.Time `json:"last_message_time"` }
type MessageSuffix ¶
type MessageSuffix struct { Target snowflake.ID `json:"target"` Suffix string `json:"suffix"` RuleType MessageSuffixRuleType `json:"rule_type"` }
type MessageSuffixRuleType ¶
type MessageSuffixRuleType int
type RolePanelV2 ¶
type RolePanelV2 struct { ID uuid.UUID `json:"uuid"` Name string `json:"name"` Description string `json:"description"` Roles []RolePanelV2Role `json:"roles"` }
type RolePanelV2Config ¶
type RolePanelV2Config struct { PanelType RolePanelV2Type `json:"panel_type"` ButtonStyle discord.ButtonStyle `json:"button_style"` ButtonShowName bool `json:"show_name"` SimpleSelectMenu bool `json:"simple_select_menu"` HideNotice bool `json:"hide_notice"` UseDisplayName bool `json:"use_display_name"` }
type RolePanelV2Edit ¶
type RolePanelV2Edit struct { ID uuid.UUID `json:"id"` CreatedAt time.Time `json:"created_at"` RolePanelID uuid.UUID `json:"role_panel_id"` GuildID snowflake.ID `json:"guild_id"` ChannelID snowflake.ID `json:"channel_id"` MessageID snowflake.ID `json:"message_id"` EmojiMode bool `json:"emoji_mode"` EmojiLocale discord.Locale `json:"emoji_locale"` SelectedID *snowflake.ID }
func (RolePanelV2Edit) HasSelectedRole ¶
func (r RolePanelV2Edit) HasSelectedRole() bool
func (RolePanelV2Edit) IsSelected ¶
func (r RolePanelV2Edit) IsSelected(id snowflake.ID) bool
type RolePanelV2EditDB ¶
type RolePanelV2Place ¶
type RolePanelV2Role ¶
type RolePanelV2Role struct { RoleID snowflake.ID `json:"role_id"` RoleName string `json:"role_name"` Emoji *discord.ComponentEmoji `json:"emoji"` }
type RolePanelV2Type ¶
type RolePanelV2Type string
type UserData ¶
type UserData struct { ID snowflake.ID `json:"id"` CreatedAt time.Time `json:"created_at"` BirthDay [2]int `json:"birth_day"` Location DataLocation `json:"location"` Locale discord.Locale `json:"locale"` LastMessageTime time.Time `json:"last_message_time"` MessageCount int64 `json:"message_count"` GlobalLevel UserDataLevel `json:"global_level"` GlobalMessageLevel UserDataLevel `json:"global_message_level"` GlobalVoiceLevel UserDataLevel `json:"global_voice_level"` DataVersion int `json:"data_version"` }
func (*UserData) UnmarshalJSON ¶
type UserDataLevel ¶
func (*UserDataLevel) Add ¶
func (u *UserDataLevel) Add(i *big.Int)
func (*UserDataLevel) AddRandom ¶
func (u *UserDataLevel) AddRandom()
func (UserDataLevel) Level ¶
func (u UserDataLevel) Level() *big.Int
func (UserDataLevel) ReqPoint ¶
func (u UserDataLevel) ReqPoint() *big.Int
func (UserDataLevel) SumReqPoint ¶
func (u UserDataLevel) SumReqPoint() *big.Int
Click to show internal directories.
Click to hide internal directories.