mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 01:38:27 -04:00
Added bot_perm support to medusa system
This commit is contained in:
@@ -3,12 +3,11 @@
|
||||
namespace Nadeko.Snake;
|
||||
|
||||
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
|
||||
public sealed class user_permAttribute : Attribute
|
||||
public sealed class user_permAttribute : MedusaPermAttribute
|
||||
{
|
||||
public GuildPermission? GuildPerm { get; }
|
||||
public ChannelPermission? ChannelPerm { get; }
|
||||
|
||||
|
||||
public user_permAttribute(GuildPermission perm)
|
||||
{
|
||||
GuildPerm = perm;
|
||||
@@ -21,4 +20,3 @@ public sealed class user_permAttribute : Attribute
|
||||
GuildPerm = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user