This repository has been archived on 2024-12-22. You can view files and clone it, but cannot push or open issues or pull requests.
elliebot/src/Ellie.Marmalade/Attributes/bot_permAttribute.cs

22 lines
516 B
C#
Raw Normal View History

2024-03-23 18:42:46 +13:00
using Discord;
2024-05-12 23:43:23 +12:00
namespace EllieBot.Marmalade;
2024-03-23 18:42:46 +13:00
[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;
}
2024-03-23 18:42:46 +13:00
public bot_permAttribute(ChannelPermission perm)
{
ChannelPerm = perm;
GuildPerm = null;
}
}