Discord Bot

Langbergio

New member
Joined
Jul 17, 2017
Messages
1
Programming Experience
Beginner
Don't know if everyone having experience with creating Discord Bot's?
I currently stuck.

I'm new at Programming, but really wanna learn it.

I need to Bot to send a message to a certain Text Channel every x hours.

My attempt so far, not working. Not sure if it's the right direction.
C#:
public async Task auto()        {
            Post:
            IGuild guild = Context.Guild;
            IGuildChannel gchannel = await guild.GetChannelAsync(335778399559876608);
            IMessageChannel messageChannel = gchannel as IMessageChannel;
            Thread.Sleep(1000);
            goto Post;
        }

There docs, but as of now, i don't quite understand to use it.
https://discord.foxbot.me/docs/api/Discord.html

If anyone could help, it would be amazing!
 
Back
Top Bottom