chaosbot/ChaosBot/Models/CustomCommand.cs

30 lines
638 B
C#

using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace ChaosBot.Models
{
#region Required
public class CustomCommand
{
[Required]
public ulong DiscordGuildId { get; set; }
[Required]
[MaxLength(128)]
public string Command { get; set; }
[Required]
public CustomCommandType Type { get; set; }
[Required]
public string Content { get; set; }
}
#endregion
public enum CustomCommandType
{
Basic = 0,
CustomLua = 1,
Embed = 2
}
}