Beispiel #1
0
 public static ClientGuildSettings ModifyGuildSettings(this DiscordClient client, ulong guildId, GuildSettingsProperties properties)
 {
     return(client.ModifyGuildSettingsAsync(guildId, properties).GetAwaiter().GetResult());
 }
Beispiel #2
0
 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));
 }
Beispiel #3
0
 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));
 }
Beispiel #4
0
 public ClientGuildSettings ModifyClientSettings(GuildSettingsProperties properties)
 {
     return(ModifyClientSettingsAsync(properties).GetAwaiter().GetResult());
 }
Beispiel #5
0
 public async Task <ClientGuildSettings> ModifyClientSettingsAsync(GuildSettingsProperties properties)
 {
     return(await Client.ModifyGuildSettingsAsync(Id, properties));
 }
Beispiel #6
0
 public ClientGuildSettings ModifyClientSettings(GuildSettingsProperties properties)
 {
     return(Client.ModifyGuildSettings(Id, properties));
 }