I want my bot to send an image from given url with caption got from String(), but with SendFileAsync() it totally doesn't work. Is there another method for sending images from internet or I just screwed up something in here?
public class Task : ModuleBase
{
public Task()
{
Thread.Sleep(6000);
IReadOnlyCollection<SocketGuild> guilds = CommandHandler._discord.Guilds;
foreach (var guild in guilds)
{
JobManager.AddJob(() => CommandHandler._discord.GetGuild(guild.Id).DefaultChannel.SendFileAsync("HERE_GOES_URL", String()), (s) => s.ToRunEvery(5).Seconds());
}
}
}
static void Initializer()
{
JobManager.Initialize(new MyRegistry());
}