3 using System.Threading.Tasks;
14 public string Name =>
"version";
17 public string HelpText =>
"Displays the tgstation server version";
20 public bool AdminOnly =>
false;
33 this.application = application ??
throw new ArgumentNullException(nameof(application));
37 public Task<string> Invoke(
string arguments,
User user, CancellationToken cancellationToken) => Task.FromResult(application.VersionString);
Configures the ASP.NET Core web application
Use server authentication
ICommand to return the IApplication.VersionString
readonly IApplication application
The IApplication for the VersionCommand
VersionCommand(IApplication application)
Construct a VersionCommand
Represents a tgs_chat_user datum
Represents a command that can be invoked by talking to chat bots