tgstation-server
6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
src
Tgstation.Server.Host
Components
Chat
Commands
ICommand.cs
Go to the documentation of this file.
1
using
System.Threading;
2
using
System.Threading.Tasks;
3
4
using
Tgstation.Server.Host.Components.Interop
;
5
6
namespace
Tgstation.Server.Host.Components.Chat.Commands
7
{
11
public
interface
ICommand
12
{
16
string
Name
{
get
; }
17
21
string
HelpText
{
get
; }
22
26
bool
AdminOnly
{
get
; }
27
35
ValueTask<MessageContent>
Invoke
(
string
arguments,
ChatUser
user, CancellationToken cancellationToken);
36
}
37
}
Tgstation.Server.Host.Components.Chat.ChatUser
Represents a tgs_chat_user datum.
Definition
ChatUser.cs:12
Tgstation.Server.Host.Components.Chat.Commands.ICommand
Represents a command that can be invoked by talking to chat bots.
Definition
ICommand.cs:12
Tgstation.Server.Host.Components.Chat.Commands.ICommand.AdminOnly
bool AdminOnly
If the command should only be available to ChatUsers who's ChatUser.Channel has ChannelRepresentation...
Definition
ICommand.cs:26
Tgstation.Server.Host.Components.Chat.Commands.ICommand.Invoke
ValueTask< MessageContent > Invoke(string arguments, ChatUser user, CancellationToken cancellationToken)
Invoke the ICommand.
Tgstation.Server.Host.Components.Chat.Commands.ICommand.Name
string Name
The text to invoke the command. May not be "?" or "help" (case-insensitive).
Definition
ICommand.cs:16
Tgstation.Server.Host.Components.Chat.Commands.ICommand.HelpText
string HelpText
The help text to display when queires are made about the command.
Definition
ICommand.cs:21
Tgstation.Server.Host.Components.Chat.Commands
Definition
CommandFactory.cs:12
Tgstation.Server.Host.Components.Interop
Definition
BridgeCommandType.cs:2
Generated by
1.9.8