tgstation-server 6.17.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
Public Member Functions | Properties | Static Private Attributes | List of all members
Tgstation.Server.Host.Components.Chat.Commands.KekCommand Class Referencesealed

kek. More...

Inheritance diagram for Tgstation.Server.Host.Components.Chat.Commands.KekCommand:
Inheritance graph
[legend]
Collaboration diagram for Tgstation.Server.Host.Components.Chat.Commands.KekCommand:
Collaboration graph
[legend]

Public Member Functions

ValueTask< MessageContentInvoke (string arguments, ChatUser user, CancellationToken cancellationToken)
 Invoke the ICommand.
Parameters
argumentsThe text after Name with leading whitespace trimmed.
userThe ChatUser who invoked the command.
cancellationTokenThe CancellationToken for the operation.
Returns
A ValueTask<TResult> resulting in a MessageContent to send to the invoker.

 

Properties

string Name [get]
 The text to invoke the command. May not be "?" or "help" (case-insensitive).
 
string HelpText [get]
 The help text to display when queires are made about the command.
 
bool AdminOnly [get]
 If the command should only be available to ChatUsers who's ChatUser.Channel has ChannelRepresentation.IsAdminChannel set.
 
- Properties inherited from Tgstation.Server.Host.Components.Chat.Commands.ICommand

Static Private Attributes

const string Kek = "kek"
 kek.
 

Detailed Description

kek.

Definition at line 11 of file KekCommand.cs.

Member Function Documentation

◆ Invoke()

ValueTask< MessageContent > Tgstation.Server.Host.Components.Chat.Commands.KekCommand.Invoke ( string  arguments,
ChatUser  user,
CancellationToken  cancellationToken 
)

Invoke the ICommand.

Parameters
argumentsThe text after Name with leading whitespace trimmed.
userThe ChatUser who invoked the command.
cancellationTokenThe CancellationToken for the operation.
Returns
A ValueTask<TResult> resulting in a MessageContent to send to the invoker.

Implements Tgstation.Server.Host.Components.Chat.Commands.ICommand.

References Tgstation.Server.Host.Components.Chat.Commands.KekCommand.Kek.

Member Data Documentation

◆ Kek

const string Tgstation.Server.Host.Components.Chat.Commands.KekCommand.Kek = "kek"
staticprivate

Property Documentation

◆ AdminOnly

bool Tgstation.Server.Host.Components.Chat.Commands.KekCommand.AdminOnly
get

If the command should only be available to ChatUsers who's ChatUser.Channel has ChannelRepresentation.IsAdminChannel set.

Implements Tgstation.Server.Host.Components.Chat.Commands.ICommand.

Definition at line 25 of file KekCommand.cs.

◆ HelpText

string Tgstation.Server.Host.Components.Chat.Commands.KekCommand.HelpText
get

The help text to display when queires are made about the command.

Implements Tgstation.Server.Host.Components.Chat.Commands.ICommand.

Definition at line 22 of file KekCommand.cs.

◆ Name

string Tgstation.Server.Host.Components.Chat.Commands.KekCommand.Name
get

The text to invoke the command. May not be "?" or "help" (case-insensitive).

Implements Tgstation.Server.Host.Components.Chat.Commands.ICommand.

Definition at line 19 of file KekCommand.cs.


The documentation for this class was generated from the following file: