✅ My Discord multitool webhook thingy broken💔

i made a discord multitool which allows you to send messages thru a bot using a webhook. The thing is after the webhook message is sent, i want it like redo the whole webhook code and ask me again for the webhook url and another message. But my problem is that after the message is sent it automatically kinda redirects me to the menu 😦 ik this is very badly explained (english isnt my first lang)
30 Replies
FusedQyou
FusedQyou3mo ago
$code
MODiX
MODiX3mo ago
To post C# code type the following: ```cs // code here ``` Get an example by typing $codegif in chat For longer snippets, use: https://paste.mod.gg/
bomboclatt🎀
bomboclatt🎀OP3mo ago
$codegif
bomboclatt🎀
bomboclatt🎀OP3mo ago
the whole whole code? its a whole multitool
FusedQyou
FusedQyou3mo ago
idk Your code broke I would not know what to look at
bomboclatt🎀
bomboclatt🎀OP3mo ago
aight lmfao i cant enter the code
FusedQyou
FusedQyou3mo ago
If you don't know what to share you should debug what part of the code is relevant Read the bot message
bomboclatt🎀
bomboclatt🎀OP3mo ago
static async void webhookMessage()
{

{

{
Console.Clear();
Console.ForegroundColor = ConsoleColor.Cyan;
Console.Write("Webhook Url:");
Console.ForegroundColor = ConsoleColor.DarkCyan;
string webhook = Console.ReadLine();

Console.ForegroundColor = ConsoleColor.Cyan;
Console.Write("Message:");
string message = Console.ReadLine();
Console.ForegroundColor = ConsoleColor.DarkCyan;
string json = $"{{\"content\":\"{message}\"}}";

Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nClick 4 for return!");




using (HttpClient client = new HttpClient())
{

HttpContent content = new StringContent(json, Encoding.UTF8, "application/json");
await client.PostAsync(webhook, content);
Console.ForegroundColor = ConsoleColor.Red;

ConsoleKeyInfo input = Console.ReadKey();
char option = input.KeyChar;
Console.WriteLine(option);
switch (option)
{
case '4':
return;
}
}


}
}
static async void webhookMessage()
{

{

{
Console.Clear();
Console.ForegroundColor = ConsoleColor.Cyan;
Console.Write("Webhook Url:");
Console.ForegroundColor = ConsoleColor.DarkCyan;
string webhook = Console.ReadLine();

Console.ForegroundColor = ConsoleColor.Cyan;
Console.Write("Message:");
string message = Console.ReadLine();
Console.ForegroundColor = ConsoleColor.DarkCyan;
string json = $"{{\"content\":\"{message}\"}}";

Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nClick 4 for return!");




using (HttpClient client = new HttpClient())
{

HttpContent content = new StringContent(json, Encoding.UTF8, "application/json");
await client.PostAsync(webhook, content);
Console.ForegroundColor = ConsoleColor.Red;

ConsoleKeyInfo input = Console.ReadKey();
char option = input.KeyChar;
Console.WriteLine(option);
switch (option)
{
case '4':
return;
}
}


}
}
im SOOO cooked in c# 💔 theres more ig
FusedQyou
FusedQyou3mo ago
Where is the menu?
bomboclatt🎀
bomboclatt🎀OP3mo ago
static void Main(string[] args)

{
while (true)
{
Console.Clear();
Console.Title = "Discord Webhook Spammer -@anispark";
Banner();
Menu();
ConsoleKeyInfo input = Console.ReadKey();
char option = input.KeyChar;
Console.WriteLine(option);
switch (option)
{
case '1':

WebhookMessage();
break;

case '2':
webhookMessage();
break;




}
}
static void Main(string[] args)

{
while (true)
{
Console.Clear();
Console.Title = "Discord Webhook Spammer -@anispark";
Banner();
Menu();
ConsoleKeyInfo input = Console.ReadKey();
char option = input.KeyChar;
Console.WriteLine(option);
switch (option)
{
case '1':

WebhookMessage();
break;

case '2':
webhookMessage();
break;




}
}
this is only part of the code the entire code is 165 lines long i use vss
Sehra
Sehra3mo ago
"Discord Webhook Spammer" is this a good thing?
bomboclatt🎀
bomboclatt🎀OP3mo ago
i just made it for fun 🥰🥰
bomboclatt🎀
bomboclatt🎀OP3mo ago
No description
FusedQyou
FusedQyou3mo ago
Please just share all the code using paste sites because I doubt you still send all of it
bomboclatt🎀
bomboclatt🎀OP3mo ago
ok here's ALL the code damn wait
FusedQyou
FusedQyou3mo ago
No description
FusedQyou
FusedQyou3mo ago
No description
bomboclatt🎀
bomboclatt🎀OP3mo ago
mb i joined this server 15 mins ago 😭😭 idk how ANYTHING works
FusedQyou
FusedQyou3mo ago
That's fine but I kind of send it twice
bomboclatt🎀
bomboclatt🎀OP3mo ago
BlazeBin - vsrmvssrdtuh
A tool for sharing your source code with the world!
bomboclatt🎀
bomboclatt🎀OP3mo ago
very scuffed ik 💔
bomboclatt🎀
bomboclatt🎀OP3mo ago
No description
bomboclatt🎀
bomboclatt🎀OP3mo ago
it looks like dis btw :3 forgot to change the 2.) text
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
tannergooding
tannergooding3mo ago
they're banned already
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
tannergooding
tannergooding3mo ago
!note 1247875332850192454 more problematic comments were found post ban I'll close this, since it won't go anywhere else
Nasdack
Nasdack3mo ago
lmaooo this has got to be a troll

Did you find this page helpful?