added needed rights for slash commands

added functions for account select in the bot
This commit is contained in:
Sarah Faey 2022-11-29 00:04:22 +01:00
parent 62bacb5ad7
commit dc2563e16c
11 changed files with 876 additions and 13 deletions

View file

@ -1,4 +1,6 @@
namespace Lieb.Models.GuildWars2.Raid
using System.Text.Json.Serialization;
namespace Lieb.Models.GuildWars2.Raid
{
public enum SignUpType
{
@ -21,6 +23,7 @@
public SignUpType SignUpType { get; set; }
[JsonIgnore(Condition = JsonIgnoreCondition.Always)]
public Raid Raid { get; set; }
public LiebUser? LiebUser { get; set; }
public GuildWars2Account? GuildWars2Account { get; set; }

View file

@ -19,6 +19,7 @@ namespace Lieb.Models
public DateTime? Birthday { get; set; }
public DateTime? BannedUntil { get; set; }
public int MainGW2Account { get; set; }
public bool AlwaysSignUpWithMainAccount { get; set; } = false;
public ICollection<GuildWars2Account> GuildWars2Accounts { get; set; } = new List<GuildWars2Account>();
public ICollection<RoleAssignment> RoleAssignments { get; set; } = new List<RoleAssignment>();
}