Documentation ¶
Index ¶
- type Account
- type AccountLogout
- type DMOpenCmd
- type FileSend
- type FixLayout
- type Friends
- type Manual
- type NickSetCmd
- type ServerCmd
- type ServerCreateCmd
- type ServerJoinCmd
- type ServerLeaveCmd
- type StatusCmd
- type StatusGetCmd
- type StatusSetCmd
- type StatusSetCustomCmd
- type TFABackupGetCmd
- type TFABackupResetCmd
- type TFACmd
- type TFADisableCmd
- type TFAEnableCmd
- type UserCmd
- type UserGetCmd
- type UserSetCmd
- type VersionCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
Account manages the users account
func NewAccount ¶
func NewAccount(accountLogout *AccountLogout, window *ui.Window) *Account
NewAccount creates a ready-to-use Account command.
type AccountLogout ¶
type AccountLogout struct {
// contains filtered or unexported fields
}
AccountLogout allows logging out of cordless. This clears the token saved in the users folder.
func NewAccountLogout ¶
func NewAccountLogout(restart func(), window *ui.Window) *AccountLogout
NewAccountLogout creates a ready-to-use Logout command.
func (*AccountLogout) Aliases ¶
func (accountLogout *AccountLogout) Aliases() []string
Aliases are a list of aliases for this command. There might be none.
func (*AccountLogout) Execute ¶
func (accountLogout *AccountLogout) Execute(writer io.Writer, parameters []string)
Execute runs the command piping its output into the supplied writer.
func (*AccountLogout) Name ¶
func (accountLogout *AccountLogout) Name() string
Name returns the primary name for this command. This name will also be used for listing the command in the commandlist.
func (*AccountLogout) PrintHelp ¶
func (accountLogout *AccountLogout) PrintHelp(writer io.Writer)
PrintHelp prints a static help page for this command
type DMOpenCmd ¶
type DMOpenCmd struct {
// contains filtered or unexported fields
}
DMOpenCmd allows to open / create DM channels.
func NewDMOpenCmd ¶
NewDMOpenCmd creates a ready to use command to open / create DM channels.
type FileSend ¶
type FileSend struct {
// contains filtered or unexported fields
}
FileSend represents the command used to send multiple files to a channel.
func NewFileSendCommand ¶
NewFileSendCommand creates a ready to use FileSend instance.
func (*FileSend) Aliases ¶
Aliases represents all available aliases this command can be called with.
type FixLayout ¶
type FixLayout struct {
// contains filtered or unexported fields
}
FixLayout is the command that allows the user to change the applications layout.
func NewFixLayoutCommand ¶
NewFixLayoutCommand creates a ready-to-use FixLayout command.
type Friends ¶
type Friends struct {
// contains filtered or unexported fields
}
Friends is the command for managing discord friends.
func NewFriendsCommand ¶
NewFriendsCommand creates a new ready to use friends command instance.
type Manual ¶
type Manual struct {
// contains filtered or unexported fields
}
Manual is the command that displays the application manual.
func NewManualCommand ¶
NewManualCommand constructs a new usable manual command for the user.
type NickSetCmd ¶
type NickSetCmd struct {
// contains filtered or unexported fields
}
func NewNickSetCmd ¶
func NewNickSetCmd(session *discordgo.Session, clientState commands.ClientState) *NickSetCmd
func (NickSetCmd) Aliases ¶
func (cmd NickSetCmd) Aliases() []string
func (NickSetCmd) Name ¶
func (cmd NickSetCmd) Name() string
func (NickSetCmd) PrintHelp ¶
func (cmd NickSetCmd) PrintHelp(writer io.Writer)
type ServerCmd ¶
type ServerCmd struct {
// contains filtered or unexported fields
}
func NewServerCommand ¶
func NewServerCommand(serverJoinCmd *ServerJoinCmd, serverLeaveCmd *ServerLeaveCmd, serverCreateCmd *ServerCreateCmd) *ServerCmd
type ServerCreateCmd ¶
type ServerCreateCmd struct {
// contains filtered or unexported fields
}
func NewServerCreateCommand ¶
func NewServerCreateCommand(session *discordgo.Session) *ServerCreateCmd
func (*ServerCreateCmd) Aliases ¶
func (cmd *ServerCreateCmd) Aliases() []string
func (*ServerCreateCmd) Execute ¶
func (cmd *ServerCreateCmd) Execute(writer io.Writer, parameters []string)
func (*ServerCreateCmd) Name ¶
func (cmd *ServerCreateCmd) Name() string
func (*ServerCreateCmd) PrintHelp ¶
func (cmd *ServerCreateCmd) PrintHelp(writer io.Writer)
type ServerJoinCmd ¶
type ServerJoinCmd struct {
// contains filtered or unexported fields
}
func NewServerJoinCommand ¶
func NewServerJoinCommand(window *ui.Window, session *discordgo.Session) *ServerJoinCmd
func (*ServerJoinCmd) Aliases ¶
func (cmd *ServerJoinCmd) Aliases() []string
func (*ServerJoinCmd) Execute ¶
func (cmd *ServerJoinCmd) Execute(writer io.Writer, parameters []string)
func (*ServerJoinCmd) Name ¶
func (cmd *ServerJoinCmd) Name() string
func (*ServerJoinCmd) PrintHelp ¶
func (cmd *ServerJoinCmd) PrintHelp(writer io.Writer)
type ServerLeaveCmd ¶
type ServerLeaveCmd struct {
// contains filtered or unexported fields
}
func NewServerLeaveCommand ¶
func NewServerLeaveCommand(window *ui.Window, session *discordgo.Session) *ServerLeaveCmd
func (*ServerLeaveCmd) Aliases ¶
func (cmd *ServerLeaveCmd) Aliases() []string
func (*ServerLeaveCmd) Execute ¶
func (cmd *ServerLeaveCmd) Execute(writer io.Writer, parameters []string)
func (*ServerLeaveCmd) Name ¶
func (cmd *ServerLeaveCmd) Name() string
func (*ServerLeaveCmd) PrintHelp ¶
func (cmd *ServerLeaveCmd) PrintHelp(writer io.Writer)
type StatusCmd ¶
type StatusCmd struct {
// contains filtered or unexported fields
}
func NewStatusCommand ¶
func NewStatusCommand(statusGetCmd *StatusGetCmd, statusSetCmd *StatusSetCmd, statusSetCustomCmd *StatusSetCustomCmd) *StatusCmd
type StatusGetCmd ¶
type StatusGetCmd struct {
// contains filtered or unexported fields
}
func NewStatusGetCommand ¶
func NewStatusGetCommand(session *discordgo.Session) *StatusGetCmd
func (*StatusGetCmd) Aliases ¶
func (cmd *StatusGetCmd) Aliases() []string
func (*StatusGetCmd) Execute ¶
func (cmd *StatusGetCmd) Execute(writer io.Writer, parameters []string)
func (*StatusGetCmd) Name ¶
func (cmd *StatusGetCmd) Name() string
func (*StatusGetCmd) PrintHelp ¶
func (cmd *StatusGetCmd) PrintHelp(writer io.Writer)
type StatusSetCmd ¶
type StatusSetCmd struct {
// contains filtered or unexported fields
}
func NewStatusSetCommand ¶
func NewStatusSetCommand(session *discordgo.Session) *StatusSetCmd
func (*StatusSetCmd) Aliases ¶
func (cmd *StatusSetCmd) Aliases() []string
func (*StatusSetCmd) Execute ¶
func (cmd *StatusSetCmd) Execute(writer io.Writer, parameters []string)
func (*StatusSetCmd) Name ¶
func (cmd *StatusSetCmd) Name() string
func (*StatusSetCmd) PrintHelp ¶
func (cmd *StatusSetCmd) PrintHelp(writer io.Writer)
type StatusSetCustomCmd ¶
type StatusSetCustomCmd struct {
// contains filtered or unexported fields
}
func NewStatusSetCustomCommand ¶
func NewStatusSetCustomCommand(session *discordgo.Session) *StatusSetCustomCmd
func (*StatusSetCustomCmd) Aliases ¶
func (cmd *StatusSetCustomCmd) Aliases() []string
func (*StatusSetCustomCmd) Execute ¶
func (cmd *StatusSetCustomCmd) Execute(writer io.Writer, parameters []string)
func (*StatusSetCustomCmd) Name ¶
func (cmd *StatusSetCustomCmd) Name() string
func (*StatusSetCustomCmd) PrintHelp ¶
func (cmd *StatusSetCustomCmd) PrintHelp(writer io.Writer)
type TFABackupGetCmd ¶
type TFABackupGetCmd struct {
// contains filtered or unexported fields
}
func NewTFABackupGetCmd ¶
func NewTFABackupGetCmd(session *discordgo.Session, window *ui.Window) *TFABackupGetCmd
func (*TFABackupGetCmd) Aliases ¶
func (cmd *TFABackupGetCmd) Aliases() []string
func (*TFABackupGetCmd) Execute ¶
func (cmd *TFABackupGetCmd) Execute(writer io.Writer, parameters []string)
func (*TFABackupGetCmd) Name ¶
func (cmd *TFABackupGetCmd) Name() string
func (*TFABackupGetCmd) PrintHelp ¶
func (cmd *TFABackupGetCmd) PrintHelp(writer io.Writer)
type TFABackupResetCmd ¶
type TFABackupResetCmd struct {
// contains filtered or unexported fields
}
func NewTFABackupResetCmd ¶
func NewTFABackupResetCmd(session *discordgo.Session, window *ui.Window) *TFABackupResetCmd
func (*TFABackupResetCmd) Aliases ¶
func (cmd *TFABackupResetCmd) Aliases() []string
func (*TFABackupResetCmd) Execute ¶
func (cmd *TFABackupResetCmd) Execute(writer io.Writer, parameters []string)
func (*TFABackupResetCmd) Name ¶
func (cmd *TFABackupResetCmd) Name() string
func (*TFABackupResetCmd) PrintHelp ¶
func (cmd *TFABackupResetCmd) PrintHelp(writer io.Writer)
type TFACmd ¶
type TFACmd struct {
// contains filtered or unexported fields
}
func NewTFACommand ¶
func NewTFACommand(tfaEnable *TFAEnableCmd, tfaDisable *TFADisableCmd, tfaBackupGet *TFABackupGetCmd, tfaBackupReset *TFABackupResetCmd) *TFACmd
type TFADisableCmd ¶
type TFADisableCmd struct {
// contains filtered or unexported fields
}
func NewTFADisableCommand ¶
func NewTFADisableCommand(session *discordgo.Session) *TFADisableCmd
func (*TFADisableCmd) Aliases ¶
func (cmd *TFADisableCmd) Aliases() []string
func (*TFADisableCmd) Execute ¶
func (cmd *TFADisableCmd) Execute(writer io.Writer, parameters []string)
func (*TFADisableCmd) Name ¶
func (cmd *TFADisableCmd) Name() string
func (*TFADisableCmd) PrintHelp ¶
func (cmd *TFADisableCmd) PrintHelp(writer io.Writer)
type TFAEnableCmd ¶
type TFAEnableCmd struct {
// contains filtered or unexported fields
}
func NewTFAEnableCommand ¶
func NewTFAEnableCommand(window *ui.Window, session *discordgo.Session) *TFAEnableCmd
func (*TFAEnableCmd) Aliases ¶
func (cmd *TFAEnableCmd) Aliases() []string
func (*TFAEnableCmd) Execute ¶
func (cmd *TFAEnableCmd) Execute(writer io.Writer, parameters []string)
func (*TFAEnableCmd) Name ¶
func (cmd *TFAEnableCmd) Name() string
func (*TFAEnableCmd) PrintHelp ¶
func (cmd *TFAEnableCmd) PrintHelp(writer io.Writer)
type UserCmd ¶
type UserCmd struct {
// contains filtered or unexported fields
}
func NewUserCommand ¶
func NewUserCommand(userSetCmd *UserSetCmd, userGetCmd *UserGetCmd) *UserCmd
type UserGetCmd ¶
type UserGetCmd struct {
// contains filtered or unexported fields
}
func NewUserGetCommand ¶
func NewUserGetCommand(window *ui.Window, session *discordgo.Session) *UserGetCmd
func (*UserGetCmd) Aliases ¶
func (cmd *UserGetCmd) Aliases() []string
func (*UserGetCmd) Name ¶
func (cmd *UserGetCmd) Name() string
func (*UserGetCmd) PrintHelp ¶
func (cmd *UserGetCmd) PrintHelp(writer io.Writer)
type UserSetCmd ¶
type UserSetCmd struct {
// contains filtered or unexported fields
}
func NewUserSetCommand ¶
func NewUserSetCommand(window *ui.Window, session *discordgo.Session) *UserSetCmd
func (*UserSetCmd) Aliases ¶
func (cmd *UserSetCmd) Aliases() []string
func (*UserSetCmd) Name ¶
func (cmd *UserSetCmd) Name() string
func (*UserSetCmd) PrintHelp ¶
func (cmd *UserSetCmd) PrintHelp(writer io.Writer)
type VersionCmd ¶
type VersionCmd struct{}
func NewVersionCommand ¶
func NewVersionCommand() *VersionCmd
func (VersionCmd) Aliases ¶
func (cmd VersionCmd) Aliases() []string
func (VersionCmd) Name ¶
func (cmd VersionCmd) Name() string
func (VersionCmd) PrintHelp ¶
func (cmd VersionCmd) PrintHelp(writer io.Writer)