/// <summary> Deletes this server if you're the owner. </summary> public void Delete(DiscordServerCallback callback) { if (client.isBot) { return; } client.DeleteServer(ID, callback); }
/// <summary> Changes the owner. </summary> /// <param name="newOwner">The new owner for this server.</param> public void ChangeOwner(DiscordUser newOwner, DiscordServerCallback callback) { client.EditServer(ID, null, newOwner.ID, null, null, null, null, null, null, callback); }
/// <summary> Leaves this server. </summary> public void Leave(DiscordServerCallback callback) { client.LeaveServer(ID, callback); }
/// <summary> Edits this server. </summary> /// <param name="servername">The servername of this server.</param> /// <param name="region">The region of this server.</param> /// <param name="verificationLevel">The verification level of this server.</param> /// <param name="afkchannel">The afkchannel of this server.</param> /// <param name="timeout">The afk timeout of this server.</param> /// <param name="icon">The icon of this server.</param> /// <param name="splash">The splash of this server.</param> public void Edit(string servername, string region, int?verificationLevel, DiscordVoiceChannel afkchannel, int?timeout, Texture2D icon, Texture2D splash, DiscordServerCallback callback) { client.EditServer(ID, servername, null, region, verificationLevel, afkchannel == null ? null : afkchannel.ID, timeout, icon, splash, callback); }