Пример #1
0
 public WelcomeScreen ModifyWelcomeScreen(WelcomeScreenProperties properties)
 {
     return(ModifyWelcomeScreenAsync(properties).GetAwaiter().GetResult());
 }
Пример #2
0
 public static WelcomeScreen ModifyWelcomeScreen(this DiscordClient client, ulong guildId, WelcomeScreenProperties properties)
 {
     return(client.ModifyWelcomeScreenAsync(guildId, properties).GetAwaiter().GetResult());
 }
Пример #3
0
 public Task <WelcomeScreen> ModifyWelcomeScreenAsync(WelcomeScreenProperties properties)
 {
     return(Client.ModifyWelcomeScreenAsync(Id, properties));
 }
Пример #4
0
 public static async Task <WelcomeScreen> ModifyWelcomeScreenAsync(this DiscordClient client, ulong guildId, WelcomeScreenProperties properties)
 {
     return((await client.HttpClient.PatchAsync($"/guilds/{guildId}/welcome-screen", properties))
            .Deserialize <WelcomeScreen>().SetClient(client));
 }