Browse Source

Readded AutoLoad setter

tags/1.0-rc
RogueException 8 years ago
parent
commit
9951112908
3 changed files with 3 additions and 2 deletions
  1. +1
    -1
      src/Discord.Net.Commands/Attributes/ModuleAttribute.cs
  2. +1
    -0
      src/Discord.Net.Commands/Attributes/NameAttribute.cs
  3. +1
    -1
      src/Discord.Net/Entities/Permissions/Permissions.cs

+ 1
- 1
src/Discord.Net.Commands/Attributes/ModuleAttribute.cs View File

@@ -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()
{ {


+ 1
- 0
src/Discord.Net.Commands/Attributes/NameAttribute.cs View File

@@ -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;


+ 1
- 1
src/Discord.Net/Entities/Permissions/Permissions.cs View File

@@ -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);


Loading…
Cancel
Save