/// <summary> Returns the name of this channel. </summary>
/// <summary> Returns the name of this channel. </summary>
public string Name { get; private set; }
public string Name { get; private set; }
/// <summary> Returns the current logged-in user's data for this server. </summary>
/// <summary> Returns the current logged-in user's data for this server. </summary>
public User CurrentMember { get; internal set; }
public User CurrentMember { get; internal set; }
/// <summary> Returns true if this is a virtual server used by Discord.Net and not a real Discord server. </summary>
public bool IsVirtual { get; internal set; }
/// <summary> Returns the amount of time (in seconds) a user must be inactive for until they are automatically moved to the AFK channel (see AFKChannel). </summary>
/// <summary> Returns the amount of time (in seconds) a user must be inactive for until they are automatically moved to the AFK channel (see AFKChannel). </summary>
public int AFKTimeout { get; private set; }
public int AFKTimeout { get; private set; }
@@ -38,49 +28,49 @@ namespace Discord
/// <summary> Returns the user that first created this server. </summary>
/// <summary> Returns the user that first created this server. </summary>
[JsonIgnore]
[JsonIgnore]
public User Owner { get; private set; }
public User Owner { get; private set; }
/// <summary> Returns the id of the AFK voice channel for this server (see AFKTimeout). </summary>
public string AFKChannelId { get; private set; }
private string _ownerId;
/// <summary> Returns the AFK voice channel for this server (see AFKTimeout). </summary>
/// <summary> Returns the AFK voice channel for this server (see AFKTimeout). </summary>
[JsonIgnore]
[JsonIgnore]
public Channel AFKChannel => _client.Channels[AFKChannelId];
/// <summary> Returns the id of the default channel for this server. </summary>
public string DefaultChannelId => Id;
public Channel AFKChannel { get; private set; }
/// <summary> Returns the default channel for this server. </summary>
/// <summary> Returns the default channel for this server. </summary>
[JsonIgnore]
[JsonIgnore]
public Channel DefaultChannel => _client.Channels[DefaultChannelId];
public Channel DefaultChannel { get; private set; }
/// <summary> Returns a collection of the ids of all users banned on this server. </summary>
/// <summary> Returns a collection of the ids of all users banned on this server. </summary>
[JsonIgnore]
[JsonIgnore]
public IEnumerable<string> Bans => _bans.Select(x => x.Key);
public IEnumerable<string> Bans => _bans.Select(x => x.Key);
private ConcurrentDictionary<string, bool> _bans;
/// <summary> Returns a collection of all channels within this server. </summary>
/// <summary> Returns a collection of all channels within this server. </summary>
[JsonIgnore]
[JsonIgnore]
public IEnumerable<Channel> Channels => _channels.Select(x => _client.Channels[x.Key]);
public IEnumerable<Channel> Channels => _channels.Select(x => x.Value);
/// <summary> Returns a collection of all channels within this server. </summary>
/// <summary> Returns a collection of all channels within this server. </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.