Add CheckCommandPerm to correct namespace
This commit is contained in:
parent
dade5809fd
commit
9fba590893
@ -3,6 +3,7 @@ using Discord;
|
||||
using Discord.Commands;
|
||||
using System.Threading.Tasks;
|
||||
using System.Collections.Generic;
|
||||
using ChaosBot.Discord.PreConditions;
|
||||
using NLog;
|
||||
|
||||
|
||||
|
||||
@ -5,6 +5,7 @@ using System.Threading.Tasks;
|
||||
using NLog;
|
||||
using System.Text;
|
||||
using ChaosBot.Database.Repository;
|
||||
using ChaosBot.Discord.PreConditions;
|
||||
|
||||
namespace ChaosBot.Discord.Modules
|
||||
{
|
||||
|
||||
@ -1,13 +1,14 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using ChaosBot;
|
||||
using ChaosBot.Database.Repository;
|
||||
using Discord.Commands;
|
||||
using Discord.WebSocket;
|
||||
|
||||
public class CheckCommandPerm : PreconditionAttribute
|
||||
namespace ChaosBot.Discord.PreConditions
|
||||
{
|
||||
public class CheckCommandPerm : PreconditionAttribute
|
||||
{
|
||||
private string _cmd { get; set; }
|
||||
|
||||
public override Task<PreconditionResult> CheckPermissionsAsync(ICommandContext context, CommandInfo command, IServiceProvider services)
|
||||
@ -43,4 +44,5 @@ public class CheckCommandPerm : PreconditionAttribute
|
||||
else
|
||||
return Task.FromResult(PreconditionResult.FromError("You must be in a guild to run this command."));
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user