From 8f6e0a8dc7c8b083602fb4e3961ac68992b114e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9=20=D0=A8=D0=B8?= =?UTF-8?q?=D0=BC=D0=B0=D0=BD=D1=81=D0=BA=D0=B8=D0=B9?= Date: Thu, 16 Nov 2023 23:53:30 +0300 Subject: [PATCH] add cw debug --- Controllers/WeatherForecastController.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Controllers/WeatherForecastController.cs b/Controllers/WeatherForecastController.cs index f11df10..f674e28 100644 --- a/Controllers/WeatherForecastController.cs +++ b/Controllers/WeatherForecastController.cs @@ -26,8 +26,11 @@ namespace DiscordApp.Controllers try { var guild = Startup.discordSocketClient.GetGuild(1107742957458685985); + await Console.Out.WriteLineAsync(guild.Name); var channel = guild.GetChannel(channelid) as ITextChannel; + await Console.Out.WriteLineAsync(channel.Name); var message = channel.GetMessagesAsync().LastOrDefaultAsync().Result.FirstOrDefault() as IUserMessage; + await Console.Out.WriteLineAsync(message.Author.GlobalName); await message.ModifyAsync(func => { func.Content = "Successfully paid!";