3using System.Threading.Tasks;
16 public string Name =>
"version";
19 public string HelpText =>
"Displays the tgstation server version";
39 public ValueTask<MessageContent>
Invoke(
string arguments,
ChatUser user, CancellationToken cancellationToken) => ValueTask.FromResult(
new MessageContent
Represents a tgs_chat_user datum.
ICommand to return the IAssemblyInformationProvider.VersionString.
readonly IAssemblyInformationProvider assemblyInformationProvider
The IAssemblyInformationProvider for the VersionCommand.
string Name
The text to invoke the command. May not be "?" or "help" (case-insensitive).
bool AdminOnly
If the command should only be available to ChatUsers who's ChatUser.Channel has ChannelRepresentation...
VersionCommand(IAssemblyInformationProvider assemblyInformationProvider)
Initializes a new instance of the VersionCommand class.
ValueTask< MessageContent > Invoke(string arguments, ChatUser user, CancellationToken cancellationToken)
Invoke the ICommand. A ValueTask<TResult> resulting in a MessageContent to send to the invoker.
string HelpText
The help text to display when queires are made about the command.
Represents a message to send to a chat provider.
Represents a command that can be invoked by talking to chat bots.