Documentation
¶
Index ¶
- Constants
- func CheckTooLongMsgErr(err error, api *apis.API, channeID types.DiscordChannelID, ...)
- func LogusMsg(value *Msg) typelog.LogType
- type AlertMsgOpt
- type Msg
- func (m *Msg) AppendRecordToMsg(record *types.ViewRecord)
- func (m *Msg) GetMessageID() types.DiscordMessageID
- func (m *Msg) GetViewEnumeratedID() types.ViewEnumeratedID
- func (m *Msg) HasRecords() bool
- func (m *Msg) Len() int
- func (v *Msg) Render() string
- func (v *Msg) Send(api *apis.API)
- func (m *Msg) SetMessageID(messagID types.DiscordMessageID)
- func (m *Msg) SetRequiresRecreate(RequiresRecreate bool)
- type MsgAction
- type MsgShared
Constants ¶
View Source
const ( MsgAlert viewType = iota MsgTable )
Variables ¶
This section is empty.
Functions ¶
func CheckTooLongMsgErr ¶
func CheckTooLongMsgErr(err error, api *apis.API, channeID types.DiscordChannelID, header types.ViewEnumeratedID, action MsgAction, MessageID types.DiscordMessageID)
Types ¶
type AlertMsgOpt ¶ added in v1.17.0
type AlertMsgOpt func(m *MsgShared)
func WithBeginning ¶ added in v1.17.0
func WithBeginning(input string) AlertMsgOpt
func WithEnd ¶ added in v1.17.0
func WithEnd(input string) AlertMsgOpt
func WithHeader ¶ added in v1.17.0
func WithHeader(input string) AlertMsgOpt
type Msg ¶
type Msg struct {
// contains filtered or unexported fields
}
func (*Msg) AppendRecordToMsg ¶
func (m *Msg) AppendRecordToMsg(record *types.ViewRecord)
func (*Msg) GetMessageID ¶
func (m *Msg) GetMessageID() types.DiscordMessageID
func (*Msg) GetViewEnumeratedID ¶
func (m *Msg) GetViewEnumeratedID() types.ViewEnumeratedID
func (*Msg) HasRecords ¶
func (*Msg) SetMessageID ¶
func (m *Msg) SetMessageID(messagID types.DiscordMessageID)
func (*Msg) SetRequiresRecreate ¶ added in v1.17.0
type MsgShared ¶
type MsgShared struct {
// contains filtered or unexported fields
}
func NewAlertMsg ¶
func NewAlertMsg( viewID types.ViewID, opts ...AlertMsgOpt, ) *MsgShared
func NewTableMsg ¶
func NewTableMsg( viewID types.ViewID, viewHeader types.ViewHeader, viewBeginning types.ViewBeginning, viewEnd types.ViewEnd, ) *MsgShared
func (*MsgShared) GetTimestamp ¶
func (m *MsgShared) GetTimestamp() types.ViewTimeStamp
func (*MsgShared) SetHeader ¶
func (v *MsgShared) SetHeader(header types.ViewHeader)
Click to show internal directories.
Click to hide internal directories.