Ejemplo n.º 1
0
        private async Task SendFile(Embed result, string socialMedia)
        {
            string thumbnail = Path.Combine(Environment.CurrentDirectory, $@"Resources\Images\SocialMedia\{socialMedia}.png");

            if (Statics.Debug)
            {
                await Statics.DebugSendFileToChannelAsync(_client, result, thumbnail);
            }
            else
            {
                await Context.Channel.SendFileAsync(thumbnail, embed : result);
            }
        }