public static ClientGuildSettings ModifyGuildSettings(this DiscordClient client, ulong guildId, GuildSettingsProperties properties) { return(client.ModifyGuildSettingsAsync(guildId, properties).GetAwaiter().GetResult()); }
public static async Task <ClientGuildSettings> ModifyGuildSettingsAsync(this DiscordClient client, ulong guildId, GuildSettingsProperties properties) { return((await client.HttpClient.PatchAsync($"/users/@me/guilds/{guildId}/settings", properties)).Deserialize <ClientGuildSettings>().SetClient(client)); }
public static ClientGuildSettings ModifyGuildSettings(this DiscordClient client, ulong guildId, GuildSettingsProperties properties) { return(client.HttpClient.Patch($"/users/@me/guilds/{guildId}/settings", properties).Deserialize <ClientGuildSettings>().SetClient(client)); }
public ClientGuildSettings ModifyClientSettings(GuildSettingsProperties properties) { return(ModifyClientSettingsAsync(properties).GetAwaiter().GetResult()); }
public async Task <ClientGuildSettings> ModifyClientSettingsAsync(GuildSettingsProperties properties) { return(await Client.ModifyGuildSettingsAsync(Id, properties)); }
public ClientGuildSettings ModifyClientSettings(GuildSettingsProperties properties) { return(Client.ModifyGuildSettings(Id, properties)); }