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