예제 #1
0
        internal static void InitialiseDiscord()
        {
            Discord = new DiscordRestClient(new DiscordConfiguration()
            {
                Token = token
            });

            Discord.InitializeAsync().GetAwaiter().GetResult();
            Message = Discord.GetMessageAsync(channelId, messageId).GetAwaiter().GetResult();
        }
예제 #2
0
 public static Task <DiscordMessage> GetMessage(this DiscordRestClient client, ulong channel, ulong message) =>
 WrapDiscordCall(client.GetMessageAsync(channel, message));