Allow duplicate RequireBotPermissionAttribute
This commit is contained in:
@@ -1,13 +1,12 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
|
||||||
|
|
||||||
namespace Discord.Commands
|
namespace Discord.Commands
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This attribute requires that the bot has a specified permission in the channel a command is invoked in.
|
/// This attribute requires that the bot has a specified permission in the channel a command is invoked in.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
|
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
|
||||||
public class RequireBotPermissionAttribute : PreconditionAttribute
|
public class RequireBotPermissionAttribute : PreconditionAttribute
|
||||||
{
|
{
|
||||||
public GuildPermission? GuildPermission { get; }
|
public GuildPermission? GuildPermission { get; }
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
|
||||||
|
|
||||||
namespace Discord.Commands
|
namespace Discord.Commands
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user