Exemple #1
0
        public async Task SendResponseAsync(ulong channelId, Response response)
        {
            if (channelId == Constants.ConsoleId)
            {
                SendMessageToConsole(response);
            }
            else
            {
                var channel = await client.GetMessageChannelAsync(channelId).ConfigureAwait(false);

                SendMessage(response, channel);
            }
        }