Partially added Channel Allow/Deny permissions
This commit is contained in:
1 parent
5bb1b43e81
commit
c8095f3ba6
5 files changed
+83
-20
No files matched your search
@@ -0,0 +1,51 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading.Tasks;
|
||||
using DSharpPlus;
|
||||
using DSharpPlus.CommandsNext;
|
||||
using DSharpPlus.CommandsNext.Attributes;
|
||||
using DSharpPlus.Entities;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace StarsiegeBot
|
||||
{
|
||||
[Group("channel")]
|
||||
[RequireGuild]
|
||||
[Description("Allows or Denies the bot from responding to commands on specific channels.\r\nA DENY will override an ALLOW. Unless DENY is set to ALL.")]
|
||||
class ChannelManagement : BotSettings
|
||||
{
|
||||
public ChannelManagement()
|
||||
{
|
||||
Console.WriteLine("Channel Management Module loaded.");
|
||||
}
|
||||
|
||||
[Command("Allow")]
|
||||
public async Task AllowChannels(CommandContext ctx, [Description("List of discord channels to allow the bot to respond on.")]params DiscordChannel[] discordChannels)
|
||||
{
|
||||
|
||||
}
|
||||
[Command("Allow")]
|
||||
public async Task AllowChannels(CommandContext ctx, string discordChannels = "")
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
[Command("deny")]
|
||||
public async Task DenyChannels(CommandContext ctx, params DiscordChannel[] discordChannels)
|
||||
{
|
||||
foreach (DiscordChannel chan in discordChannels)
|
||||
{
|
||||
Console.WriteLine(chan.Id.ToString());
|
||||
}
|
||||
}
|
||||
[Command("deny")]
|
||||
public async Task DenyChannels(CommandContext ctx, [Description("List of discord channels to deny the bot to respond on.")] string discordChannels = "")
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user