Added Discord Bot
This commit is contained in:
parent
e7a0c9ae68
commit
e445b2a181
48 changed files with 1255 additions and 157 deletions
36
Lieb/Models/GuildWars2/Raid/RaidReminder.cs
Normal file
36
Lieb/Models/GuildWars2/Raid/RaidReminder.cs
Normal file
|
@ -0,0 +1,36 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Lieb.Models.GuildWars2.Raid
|
||||
{
|
||||
public class RaidReminder
|
||||
{
|
||||
public enum ReminderType
|
||||
{
|
||||
User = 1,
|
||||
Channel = 2
|
||||
}
|
||||
|
||||
public int RaidReminderId { get; set; }
|
||||
|
||||
[Required]
|
||||
[Range(1, 2, ErrorMessage = "Please select a reminder type")]
|
||||
public ReminderType Type { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(1000, ErrorMessage = "Message too long (1000 character limit).")]
|
||||
public string Message { get; set; }
|
||||
|
||||
[Required]
|
||||
public double HoursBeforeRaid { get; set; }
|
||||
|
||||
public ulong DiscordServerId { get; set; }
|
||||
|
||||
public ulong DiscordChannelId { get; set; }
|
||||
|
||||
public bool Sent { get; set; } = false;
|
||||
|
||||
public int RaidId { get; set; }
|
||||
|
||||
public Raid Raid { get; set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue