diff options
author | TrueDoctor <d-kobert@web.de> | 2018-06-06 17:10:58 +0200 |
---|---|---|
committer | TrueDoctor <d-kobert@web.de> | 2018-06-06 17:10:58 +0200 |
commit | 97450e451fe535bccec1651b9960dd0f446736f3 (patch) | |
tree | ea7f71994687c505505c5c7070f659b9be15d529 /DiscoBot/Commands | |
parent | 7f55f6f289b5ab5b7fd4ac42b472b51a9a0e679e (diff) |
fixed some async stuff
Diffstat (limited to 'DiscoBot/Commands')
-rw-r--r-- | DiscoBot/Commands/List.cs | 2 | ||||
-rw-r--r-- | DiscoBot/Commands/MiscCommands.cs | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/DiscoBot/Commands/List.cs b/DiscoBot/Commands/List.cs index 3cd66b9..601178c 100644 --- a/DiscoBot/Commands/List.cs +++ b/DiscoBot/Commands/List.cs @@ -21,6 +21,8 @@ var res = new List<string>(); var character = ((Character)Dsa.Chars.Find(x => x.Name.Equals(Dsa.Relation[this.Context.User.Username]))); + + switch (prop.ToLower()) { case "chars": diff --git a/DiscoBot/Commands/MiscCommands.cs b/DiscoBot/Commands/MiscCommands.cs index 158882c..daf34e2 100644 --- a/DiscoBot/Commands/MiscCommands.cs +++ b/DiscoBot/Commands/MiscCommands.cs @@ -180,10 +180,7 @@ namespace DiscoBot.Commands [Alias("Check")] public async Task CheckAsync(string quarry) { - var perm = new List<string>(); - perm.Add("Admin"); - perm.Add("Mod"); - perm.Add("Privatpolizei"); + var perm = new List<string> { "Admin", "Mod", "Privatpolizei" }; Permissions.Test(this.Context, perm.ToArray()); |