How To Code A Discord Bot In Visual Studio For Mac

Active2 years ago

Open Visual Studio and use the code from the Azure Bot Services portal in step 2. Then open it up in Visual Studio as shown in Figure 13. Figure 13, creating and debugging a #chatbot using Visual Studio and Azure Bot Services. Open the Command Task Runner Explorer window.

So I've been having trouble with my Discord bot on Visual Studio 2015, C#. I've just started out literally 5 minutes ago and I've come across a problem that I've looked at but just can't seem to find out the problem with. It's saying that

should be a Username and password, or a token

But when I put my token in it says it needs two arguments.

Here is my code:

Discord Bot Maker

I've also tried putting

But it's just not working. Sorry if I'm not giving enough information, or if mine just isn't good enough, but please. What am I doing wrong?

Dorad
1,4541 gold badge24 silver badges43 bronze badges
OmegaOmega

3 Answers

Depending on what .Net lib version you are using, in the one you are using, you have to specify the TokeType like so:

JimJim

Discord Music Bot

Easily code a discord bot: part 1 - setting up
2,5391 gold badge15 silver badges28 bronze badges

simple mistake. Having a Discord Bot myself, I ran into the same issue. The API is constantly getting updated, so what you've dont use to be right, here's how you can fix it:

Balázs
2,4942 gold badges11 silver badges32 bronze badges
Wally ModzWally Modz

The method you are using is no longer working.

In 1.0 you should be using like this:

Community
f3ck4rf3ck4r

Not the answer you're looking for? Browse other questions tagged c#discorddiscord.net or ask your own question.