Beispiel #1
0
 public BotPermAttribute(ChannelPerm permission) : base((ChannelPermission)permission)
 {
 }
Beispiel #2
0
 public static string GetPreconditionString(ChannelPerm perm)
 {
     return((perm.ToString() + " Channel Permission")
            .Replace("Guild", "Server", StringComparison.InvariantCulture));
 }
Beispiel #3
0
 public UserPermAttribute(ChannelPerm permission)
 {
     UserPermissionAttribute = new RequireUserPermissionAttribute((ChannelPermission)permission);
 }