예제 #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));
 }