Message from @Undead Mockingbird

Discord ID: 508546831106572288


2018-11-04 07:38:47 UTC  

D:<

2018-11-04 07:38:49 UTC  

yes, mister "i don't see books going anywhere soon"

2018-11-04 07:38:58 UTC  

I don't

2018-11-04 07:39:09 UTC  

i have faith

2018-11-04 07:39:41 UTC  

Well, yes, you didn't pass any credentials XD

2018-11-04 07:39:49 UTC  

commodore 64 in da house tho

2018-11-04 07:39:55 UTC  

You get HTTP 401 if you can't authenticate.

2018-11-04 07:40:10 UTC  

Go and pass in the credentials of the application you created on the developer portal.

2018-11-04 07:40:20 UTC  

i'm just following this Discord.Net tutorial and i have no idea what i'm typing here

2018-11-04 07:40:49 UTC  

It's a bad tutorial if it's telling you to attempt to connect unauthenticated.

2018-11-04 07:41:04 UTC  

You should have an API key or a token.

2018-11-04 07:41:28 UTC  

the token comes later

2018-11-04 07:42:17 UTC  

It's just an async method.

2018-11-04 07:42:32 UTC  

There is no code that connects to Discord.

2018-11-04 07:42:43 UTC  

look lower

2018-11-04 07:43:06 UTC  

You need to call LoginAsync with your token.

2018-11-04 07:43:17 UTC  

it's right fucking there

2018-11-04 07:43:21 UTC  

!ping

2018-11-04 07:43:32 UTC  

Then why are you getting a 401?

2018-11-04 07:43:33 UTC  

wait no

2018-11-04 07:44:06 UTC  

You should get an HTTP 2XX

2018-11-04 07:44:18 UTC  

That's the standard REST convention.

2018-11-04 07:44:28 UTC  

Probably HTTP 200.

2018-11-04 07:44:48 UTC  

Or 201 wit a continue for paged results

2018-11-04 07:44:51 UTC  

idk about any of that but it does this
```csharp
await client.LoginAsync(TokenType.Bot, token);
await client.StartAsync();
```

2018-11-04 07:45:08 UTC  

Oh, did you attach a debuggeR?

2018-11-04 07:45:14 UTC  

Hold on ...

2018-11-04 07:45:15 UTC  

i dont know

2018-11-04 07:45:28 UTC  

everything i have done is on that page

2018-11-04 07:45:38 UTC  

Oh, not it's an exception.

2018-11-04 07:45:54 UTC  

For some reason your token didn't work.

2018-11-04 07:45:58 UTC  

hm

2018-11-04 07:46:14 UTC  

Check for copy paste error. You might have snipped off the last char or the first.

2018-11-04 07:46:23 UTC  

well, it's right

2018-11-04 07:46:25 UTC  

just checked

2018-11-04 07:46:26 UTC  

Also, the token is case sensitive.

2018-11-04 07:47:10 UTC  

i cant accidentally snip off the last char because theres a copy button lol

2018-11-04 07:47:11 UTC  

https://cdn.discordapp.com/attachments/463054787336732683/508547746890907648/unknown.png