OP 16 February, 2020 - 04:09 PM
Hi, I'm making a discord bot right now but I have ran into an issue I can't seem to fix... 
I need to change the text of my richtextbox2 to : {"username":"test","discriminator":9999}
The issue is the " is making errors because C# thinks I am ending the string there. I can't use ' because it says there are too many characters in a character literal.
So the code looks like this:
But yeah, the issue is it thinks I am ending the string. I also cannot use ' , it has to be speech marks not apostrophes.
Is there some other character I can use or a line of code or something so it just takes that as the string? For instance:
richtextbox2.Text = ${"username":"test","discriminator":9999}$
So I use the dollar symbol as the speech marks so it doesn't interfere...

I need to change the text of my richtextbox2 to : {"username":"test","discriminator":9999}
The issue is the " is making errors because C# thinks I am ending the string there. I can't use ' because it says there are too many characters in a character literal.
So the code looks like this:
Code:
richtextbox2.Text = "{"username":"test","discriminator":9999}"But yeah, the issue is it thinks I am ending the string. I also cannot use ' , it has to be speech marks not apostrophes.
Is there some other character I can use or a line of code or something so it just takes that as the string? For instance:
richtextbox2.Text = ${"username":"test","discriminator":9999}$
So I use the dollar symbol as the speech marks so it doesn't interfere...
DISCORD SERVER : CLICK
![[Image: vlr6kzb.gif]](https://i.imgur.com/vlr6kzb.gif)
![[Image: floyd-george-e1590967609961.jpg]](https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fgravitemedia.s3.ca-central-1.amazonaws.com%2F47%2F2020%2F06%2Ffloyd-george-e1590967609961.jpg)
![[Image: kOX40Je.png]](https://i.imgur.com/kOX40Je.png)