Beispiel #1
0
 public WelcomeScreen ModifyWelcomeScreen(WelcomeScreenProperties properties)
 {
     return(ModifyWelcomeScreenAsync(properties).GetAwaiter().GetResult());
 }
Beispiel #2
0
 public static WelcomeScreen ModifyWelcomeScreen(this DiscordClient client, ulong guildId, WelcomeScreenProperties properties)
 {
     return(client.ModifyWelcomeScreenAsync(guildId, properties).GetAwaiter().GetResult());
 }
Beispiel #3
0
 public Task <WelcomeScreen> ModifyWelcomeScreenAsync(WelcomeScreenProperties properties)
 {
     return(Client.ModifyWelcomeScreenAsync(Id, properties));
 }
Beispiel #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));
 }