C
C#2y ago
NQXY

❔ C#, .Net and DSharp+ Bot, Issue.

When I use the line
throw new NotImplementedException();
throw new NotImplementedException();
It tells me
Exception User-Unhandled
Exception User-Unhandled
and the method
System.NotImplementedException: "Operation" isn't implemented.
System.NotImplementedException: "Operation" isn't implemented.
I've looked up solutions, online and on YouTube but there's nothing that helps me with my issue, I'm starting to think that I'm just gonna have to give up.
34 Replies
Angius
Angius2y ago
uh Well, you are throwing an exception And VS tells you that such an exception occurred So... everything seems perfectly fine to me
pip
pip2y ago
c# working as intended Ok
NQXY
NQXYOP2y ago
I can't get my bot online because of this error, I've tried fixing it and it still doesn't work I'm losing my mind
Angius
Angius2y ago
Don't throw an exception then? "Why does it throw an error? I told it to throw an error but why does it do that?"
NQXY
NQXYOP2y ago
I'm just following tutorials from DapperDino
pip
pip2y ago
DapperDino does have nice tutorials
NQXY
NQXYOP2y ago
Mhm
pip
pip2y ago
place two / in front of the line //throw new etc then run your bot
Angius
Angius2y ago
Ctrl+K,C in VS
NQXY
NQXYOP2y ago
Well, now I have another error inside a line of code.
private Task OnClientReady(DiscordClient sender, ReadyEventArgs e)
private Task OnClientReady(DiscordClient sender, ReadyEventArgs e)
it's just the OnClientReady part that has an error. LOL
NQXY
NQXYOP2y ago
Angius
Angius2y ago
Even if the error was on screen, it'd be unreadable on this bloomy photo
NQXY
NQXYOP2y ago
Angius
Angius2y ago
Still a photo, but at least the error is here. Aight. The method says it returns a Task And yet there's no return inside Do what you did to the method below, for example
NQXY
NQXYOP2y ago
Had to do that quite a few times but now I have errors for { Which says Invalid token "{" in class, record, struct or interface member declaration
Angius
Angius2y ago
I think the first brace might be a [ instead of {...?
NQXY
NQXYOP2y ago
It's not
Angius
Angius2y ago
Would be an awful lot easier to tell with a proper screenshot, hint hint nudge nudge Well, then, something else is wrong ¯\_(ツ)_/¯ Alas, nobody will be able to tell without seeing the cod
NQXY
NQXYOP2y ago
Angius
Angius2y ago
uh You commented out method signatures and left some loose braces Yeah, I second that Learn the basic syntax first, then think of making a bot
NQXY
NQXYOP2y ago
That's the thing I have until Friday to complete this bot
Angius
Angius2y ago
How did you get yourself into a situation where you have a week to create a Discord bot while having issues with basic syntax at the same time?
NQXY
NQXYOP2y ago
It's Thursday for me I have until tomorrow
Angius
Angius2y ago
Ah, well then How did you get yourself into a situation where you have a day to create a Discord bot while having issues with basic syntax at the same time?
NQXY
NQXYOP2y ago
I do commissions I had a month to get it done but I got sick
Angius
Angius2y ago
Well shouldn't have taken this one if you don't know C# well
Aaron
Aaron2y ago
commissions for something you don't know how to do?
Angius
Angius2y ago
I don't know anything about carpentry, I'm not gonna accept a commission to build someone a house
NQXY
NQXYOP2y ago
Alright, I will just quit on it and give up Because I wanted to learn something I've been wanting to do for a year
Angius
Angius2y ago
Learning is good Learning under the pressure of a commission you have to complete in a specified time... well that's no fun
NQXY
NQXYOP2y ago
I'm used to it
pip
pip2y ago
i admire your "get it done" attitude though. if you stick with programming with that attitude you will go far
NQXY
NQXYOP2y ago
I fixed the issue And my bot is online, thank you all for the help. Oh, I know that Which is the reason why I have acquired the attitude
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server