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,11 +1,12 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using ChaosBot;
|
||||
using ChaosBot.Database.Repository;
|
||||
using Discord.Commands;
|
||||
using Discord.WebSocket;
|
||||
|
||||
namespace ChaosBot.Discord.PreConditions
|
||||
{
|
||||
public class CheckCommandPerm : PreconditionAttribute
|
||||
{
|
||||
private string _cmd { get; set; }
|
||||
@ -44,3 +45,4 @@ public class CheckCommandPerm : PreconditionAttribute
|
||||
return Task.FromResult(PreconditionResult.FromError("You must be in a guild to run this command."));
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user