-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCommandData.cs
28 lines (23 loc) · 1.01 KB
/
CommandData.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;
using System.Collections.Generic;
using System.Text;
using Discord;
namespace DiscordBotBase
{
/// <summary>All data related to a user command.</summary>
public class CommandData
{
/// <summary>The original Discord message.</summary>
public IUserMessage Message;
/// <summary>The raw argument text, split by spaces, after the command base. Includes pings and other data.</summary>
public string[] RawArguments;
/// <summary>The raw argument text, split by spaces, after the command base. Excludes pings or other special ignorable formats.</summary>
public string[] CleanedArguments;
/// <summary>
/// Set to 'true' when the command was written like "@Bot commandhere", set to 'false' when the command was written with a prefix like "!commandhere" (or other special execution method).
/// </summary>
public bool WasBotMention;
/// <summary>The relevant bot instance.</summary>
public DiscordBot Bot;
}
}