Documentation
¶
Index ¶
- Constants
- func Init(bot *bot.Bot, perms bcr.CustomPerms) (s string, list []*bcr.Command)
- type ActionType
- type AuditLog
- type Entry
- func (e *Entry) AfterExplanation() (ex db.Explanation, err error)
- func (e *Entry) AfterPronouns() (p db.PronounSet, err error)
- func (e *Entry) AfterTerm() (t db.Term, err error)
- func (e *Entry) BeforeExplanation() (ex db.Explanation, err error)
- func (e *Entry) BeforePronouns() (p db.PronounSet, err error)
- func (e *Entry) BeforeTerm() (t db.Term, err error)
- type EntrySubject
Constants ¶
View Source
const ( ErrBeforeNil = errors.Sentinel("before is nil") ErrAfterNil = errors.Sentinel("after is nil") ErrInvalidSubjectType = errors.Sentinel("invalid subject") )
...
View Source
const ErrAuditLogSendFailed = errors.Sentinel("failed to send one or both audit log entries")
ErrAuditLogSendFailed ...
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ActionType ¶
type ActionType string
ActionType ...
const ( CreateAction ActionType = "create" UpdateAction ActionType = "update" DeleteAction ActionType = "delete" )
...
type Entry ¶
type Entry struct { ID int64 SubjectID int Subject EntrySubject Action ActionType Before json.RawMessage After json.RawMessage UserID discord.UserID Reason sql.NullString Timestamp time.Time PublicMessageID discord.MessageID PrivateMessageID discord.MessageID }
Entry ...
func (*Entry) AfterExplanation ¶
func (e *Entry) AfterExplanation() (ex db.Explanation, err error)
AfterExplanation gets the entry's After as a db.Explanation
func (*Entry) AfterPronouns ¶
func (e *Entry) AfterPronouns() (p db.PronounSet, err error)
AfterPronouns gets the entry's After as a db.PronounSet
func (*Entry) BeforeExplanation ¶
func (e *Entry) BeforeExplanation() (ex db.Explanation, err error)
BeforeExplanation gets the entry's Before as a db.Explanation
func (*Entry) BeforePronouns ¶
func (e *Entry) BeforePronouns() (p db.PronounSet, err error)
BeforePronouns gets the entry's Before as a db.PronounSet
type EntrySubject ¶
type EntrySubject string
EntrySubject ...
const ( TermEntry EntrySubject = "term" PronounsEntry EntrySubject = "pronouns" ExplanationEntry EntrySubject = "explanation" )
...
Click to show internal directories.
Click to hide internal directories.