/// <summary> Returns the current logged-in user. </summary>
/// <summary> Returns the current logged-in user. </summary>
public User CurrentUser => _currentUser;
public User CurrentUser => _currentUser;
private User _currentUser;
private User _currentUser;
/// <summary> Returns the id of the server this user is currently connected to for voice. </summary>
public string CurrentVoiceServerId => _voiceSocket.CurrentVoiceServerId;
/// <summary> Returns the server this user is currently connected to for voice. </summary>
public Server CurrentVoiceServer => _servers[_voiceSocket.CurrentVoiceServerId];
/// <summary> Returns the current connection state of this client. </summary>
public DiscordClientState State => (DiscordClientState)_state;
public DiscordClientState State => (DiscordClientState)_state;
private int _state;
private int _state;
/// <summary> Returns the configuration object used to make this client. Note that this object cannot be edited directly - to change the configuration of this client, use the DiscordClient(DiscordClientConfig config) constructor. </summary>
public DiscordClientConfig Config => _config;
public DiscordClientConfig Config => _config;
private readonly DiscordClientConfig _config;
private readonly DiscordClientConfig _config;
/// <summary> Returns a collection of all channels this client is a member of. </summary>
public Channels Channels => _channels;
public Channels Channels => _channels;
private readonly Channels _channels;
private readonly Channels _channels;
/// <summary> Returns a collection of all user-server pairs this client can currently see. </summary>
public Members Members => _members;
public Members Members => _members;
private readonly Members _members;
private readonly Members _members;
/// <summary> Returns a collection of all messages this client has seen since logging in and currently has in cache. </summary>
public Messages Messages => _messages;
public Messages Messages => _messages;
private readonly Messages _messages;
private readonly Messages _messages;
//TODO: Do we need the roles cache?
/// <summary> Returns a collection of all role-server pairs this client can currently see. </summary>
public Roles Roles => _roles;
public Roles Roles => _roles;
private readonly Roles _roles;
private readonly Roles _roles;
/// <summary> Returns a collection of all servers this client is a member of. </summary>
public Servers Servers => _servers;
public Servers Servers => _servers;
private readonly Servers _servers;
private readonly Servers _servers;
/// <summary> Returns a collection of all users this client can currently see. </summary>
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.