示例#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));
 }