forked from EllieBotDevs/elliebot
22 lines
514 B
C#
22 lines
514 B
C#
|
using Discord;
|
|||
|
|
|||
|
namespace Ellie.Canary;
|
|||
|
|
|||
|
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
|
|||
|
public sealed class bot_permAttribute : MarmaladePermAttribute
|
|||
|
{
|
|||
|
public GuildPermission? GuildPerm { get; }
|
|||
|
public ChannelPermission? ChannelPerm { get; }
|
|||
|
|
|||
|
public bot_permAttribute(GuildPermission perm)
|
|||
|
{
|
|||
|
GuildPerm = perm;
|
|||
|
ChannelPerm = null;
|
|||
|
}
|
|||
|
|
|||
|
public bot_permAttribute(ChannelPermission perm)
|
|||
|
{
|
|||
|
ChannelPerm = perm;
|
|||
|
GuildPerm = null;
|
|||
|
}
|
|||
|
}
|