OP 21 December, 2019 - 06:44 PM
Hello everyone! I am working on a discord spammer. I am found a channel spammer and i tried to change it to dm spam but its not worked. Can someone help me? I tried to change 'https://discordapp.com/api/v6/channels/' to 'https://discordapp.com/api/v6/users/' and i put user id but its not worked. Please help me i want it. This is the channel spammer code:
Quote:spam = true;
new Thread((ThreadStart)delegate
{
if (spam)
{
while (spam)
{
using (WebClient webClient = new WebClient())
{
using (StreamReader streamReader = File.OpenText("tokens.txt"))
{
string[] array = streamReader.ReadToEnd().Split("\r\n".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
string[] array2 = array;
foreach (string value in array2)
{
try
{
NameValueCollection data = new NameValueCollection
{
["content"] = msg.Text
};
webClient.Headers["authorization"] = value;
byte[] array3 = webClient.UploadValues("https://discordapp.com/api/v6/channels/" + channelid.Text + "/messages", data);
}
catch
{
}
}
}
}
}
}
}).Start();