예제 #1
0
 public DiscordMessage SendMessage(EmbedMaker embed)
 {
     return(SendMessageAsync(embed).GetAwaiter().GetResult());
 }
예제 #2
0
 public Task <DiscordMessage> SendMessageAsync(EmbedMaker embed)
 {
     return(Client.SendMessageAsync(Id, embed));
 }
예제 #3
0
 public static async Task <DiscordMessage> SendMessageAsync(this DiscordClient client, ulong channelId, EmbedMaker embed)
 {
     return(await client.SendMessageAsync(channelId, new MessageProperties()
     {
         Embed = embed
     }));
 }
예제 #4
0
 public static DiscordMessage SendMessage(this DiscordClient client, ulong channelId, EmbedMaker embed)
 {
     return(client.SendMessageAsync(channelId, embed).GetAwaiter().GetResult());
 }
예제 #5
0
 public static async Task <DiscordMessage> SendMessageAsync(this DiscordClient client, ulong channelId, EmbedMaker embed)
 {
     return(await client.SendMessageAsync(channelId, null, false, embed));
 }