public static void ModifyGuild(string guildid, ModifyGuild modifyguild) { try { IGuildService guildservice = AuthenticatedRestFactory.GetGuildService(); guildservice.ModifyGuild(guildid, modifyguild).Wait(); } catch (Exception exception) { App.NavigateToBugReport(exception); } }
/// <inheritdoc/> public async Task ModifyGuild(ulong id, ModifyGuild modifyGuild) => await _quarrelClient.Guilds.ModifyGuild(id, modifyGuild);
/// <summary> /// Modifies a guild. /// </summary> /// <param name="id">The id of the guild.</param> /// <param name="modifyGuild">The guild modifications.</param> public async Task ModifyGuild(ulong id, ModifyGuild modifyGuild) { Guard.IsNotNull(_client.GuildService, nameof(_client.GuildService)); await _client.GuildService.ModifyGuild(id, modifyGuild.ToJsonModel()); }
/// <inheritdoc /> public virtual Task <SharedModels.Guild> ModifyGuild(string guildId, ModifyGuild modifyGuild) { var arguments = new object[] { guildId, modifyGuild }; return((Task <SharedModels.Guild>)methodImpls["ModifyGuild"](Client, arguments)); }