Readded AutoLoad setter
This commit is contained in:
@@ -6,7 +6,7 @@ namespace Discord.Commands
|
|||||||
public class ModuleAttribute : Attribute
|
public class ModuleAttribute : Attribute
|
||||||
{
|
{
|
||||||
public string Prefix { get; }
|
public string Prefix { get; }
|
||||||
public bool AutoLoad { get; }
|
public bool AutoLoad { get; set; }
|
||||||
|
|
||||||
public ModuleAttribute()
|
public ModuleAttribute()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ namespace Discord.Commands
|
|||||||
public class NameAttribute : Attribute
|
public class NameAttribute : Attribute
|
||||||
{
|
{
|
||||||
public string Text { get; }
|
public string Text { get; }
|
||||||
|
|
||||||
public NameAttribute(string text)
|
public NameAttribute(string text)
|
||||||
{
|
{
|
||||||
Text = text;
|
Text = text;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ namespace Discord
|
|||||||
internal static class Permissions
|
internal static class Permissions
|
||||||
{
|
{
|
||||||
public const int MaxBits = 53;
|
public const int MaxBits = 53;
|
||||||
|
|
||||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||||
public static PermValue GetValue(ulong allow, ulong deny, ChannelPermission bit)
|
public static PermValue GetValue(ulong allow, ulong deny, ChannelPermission bit)
|
||||||
=> GetValue(allow, deny, (byte)bit);
|
=> GetValue(allow, deny, (byte)bit);
|
||||||
|
|||||||
Reference in New Issue
Block a user