Merge branch 'preview' of https://github.com/Wizzy69/DiscordBotWithAPI into preview

This commit is contained in:
2022-10-23 20:11:47 +03:00

View File

@@ -113,6 +113,12 @@ public class Program
Y = 16 Y = 16
}; };
var button3 = new Button("ⓘ")
{
X = Pos.Left(textFiledServerID) + 20,
Y = textFiledServerID.Y
};
Console.CancelKeyPress += (sender, e) => { top.Running = false; }; Console.CancelKeyPress += (sender, e) => { top.Running = false; };
button.Clicked += () => button.Clicked += () =>
@@ -163,9 +169,16 @@ public class Program
} }
}; };
button3.Clicked += () =>
{
MessageBox.Query("Discord Bot Settings",
"Server ID can be found in Server settings => Widget => Server ID",
"Close");
};
win.Add(labelInfo, labelPrefix, labelServerid, labelToken); win.Add(labelInfo, labelPrefix, labelServerid, labelToken);
win.Add(textFiledToken, textFiledPrefix, textFiledServerID); win.Add(textFiledToken, textFiledPrefix, textFiledServerID);
win.Add(button, button2); win.Add(button, button2, button3);
Application.Run(); Application.Run();
Application.Shutdown(); Application.Shutdown();
} }