You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.0 KiB
30 lines
1.0 KiB
4 years ago
|
namespace Discord.Commands
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Represents a context of a command. This may include the client, guild, channel, user, and message.
|
||
|
/// </summary>
|
||
|
public interface ICommandContext
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Gets the <see cref="IDiscordClient" /> that the command is executed with.
|
||
|
/// </summary>
|
||
|
IDiscordClient Client { get; }
|
||
|
/// <summary>
|
||
|
/// Gets the <see cref="IGuild" /> that the command is executed in.
|
||
|
/// </summary>
|
||
|
IGuild Guild { get; }
|
||
|
/// <summary>
|
||
|
/// Gets the <see cref="IMessageChannel" /> that the command is executed in.
|
||
|
/// </summary>
|
||
|
IMessageChannel Channel { get; }
|
||
|
/// <summary>
|
||
|
/// Gets the <see cref="IUser" /> who executed the command.
|
||
|
/// </summary>
|
||
|
IUser User { get; }
|
||
|
/// <summary>
|
||
|
/// Gets the <see cref="IUserMessage" /> that the command is interpreted from.
|
||
|
/// </summary>
|
||
|
IUserMessage Message { get; }
|
||
|
}
|
||
|
}
|