Added [user_perm()] support to medusa system

This commit is contained in:
Kwoth
2023-01-14 22:43:13 +01:00
parent 9a80383327
commit aa3409a9cf
3 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
using Discord;
namespace Nadeko.Snake;
[AttributeUsage(AttributeTargets.Method)]
public sealed class user_permAttribute : Attribute
{
public GuildPermission? GuildPerm { get; }
public ChannelPermission? ChannelPerm { get; }
public user_permAttribute(GuildPermission perm)
{
GuildPerm = perm;
ChannelPerm = null;
}
public user_permAttribute(ChannelPermission perm)
{
ChannelPerm = perm;
GuildPerm = null;
}
}