Posted
I'm trying to make a blacklist system where, when you first run the application it gets your discord id and puts it in a file and then compares it to a pastebin or something. Now i dont know how to make it get ur discord id. I need some help.
yes :nod:
Replied
What Your Doing Is Simple But I Won't Spoonfeed And I'm On Phone Also
Cancel
Post
Added
@Astronemi Discord Token Works Its Basically Self Botting Which Is The Issue I'll Write Some Example Code Below
using System.Net;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
private string UserInfo(string Token)
{
using (var Client = new WebClient())
{
Client.Headers.Add("Authorization", Token);
var Json = JsonConvert.DeserializeObject<JToken>(Client.DownloadString("https://discord.com/api/v9/users/@me"); /* Need Newtonsoft.Json Package */
return Json["id"]?.ToString();
}
}
Actually This Example Code Should Actually Do The Job But Wouldn't Recommend Using Since Considered Self Botting And That Can Get You Banned
I Actually Still Have A Class I Called DiscordManager That Would Do This Exact Purpose But It Also Handled The Rest Such As Retrieving And Validating Tokens Getting And Returning The Content Such As Username, Pfp Hash, Id, And Discrim
Cancel
Post
Added
@draxer Also You Can Literally Just Manually Blacklist People By Copying Their Id By Right Clicking Their Discord Account And Clicking Copy ID
Cancel
Post
Replied
@ImmuneLion318 Ye, that's how I choose who to blacklist, But how is the program going to know what your id is?
Cancel
Post
yes :nod:
Replied
@Laxion
He could have a try statement to grab discord id and if it doesent work just try HWID blacklist
Cancel
Post
Know c# and trying to expand my knowledge in it.
Rep Goal [1,2,3,4,5,6,7,8,9,10]Rickrolled Talan2016 : https://cdn.discordapp.com/attachments/852018376368979974/852033650593497128/unknown.png
Discord : Doctor Doom#0550
Replied
@Laxion Yup I understand, Idk I thought It would be more safer I guess since you could just spoof your hwid
Cancel
Post
Know c# and trying to expand my knowledge in it.
Rep Goal [1,2,3,4,5,6,7,8,9,10]Rickrolled Talan2016 : https://cdn.discordapp.com/attachments/852018376368979974/852033650593497128/unknown.png
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post