コード例 #1
0
 public LocalOverwrite(Snowflake targetId, OverwriteTargetType targetType, OverwritePermissions permissions)
 {
     TargetId    = targetId;
     TargetType  = targetType;
     Permissions = permissions;
 }
コード例 #2
0
 public LocalOverwrite(IRole target, OverwritePermissions permissions)
     : this(target?.Id ?? throw new ArgumentNullException(nameof(target)), OverwriteTargetType.Role, permissions)
 {
 }
コード例 #3
0
 public static LocalOverwrite Member(Snowflake memberId, OverwritePermissions permissions)
 => new(memberId, OverwriteTargetType.Member, permissions);