Expose bot state via interface

This commit is contained in:
Dean Herbert 2021-11-05 13:38:48 +09:00
parent ead64282dd
commit f2700b0a6d
3 changed files with 5 additions and 1 deletions

View File

@ -11,5 +11,7 @@ public class RealmUser : EmbeddedObject, IUser
public int OnlineID { get; set; } = 1;
public string Username { get; set; }
public bool IsBot => false;
}
}

View File

@ -79,7 +79,7 @@ public class UserCover
public bool IsBNG;
[JsonProperty(@"is_bot")]
public bool IsBot;
public bool IsBot { get; set; }
[JsonProperty(@"is_active")]
public bool Active;

View File

@ -8,5 +8,7 @@ namespace osu.Game.Users
public interface IUser : IHasOnlineID<int>
{
string Username { get; set; }
bool IsBot { get; }
}
}