diff --git a/Controllers/WeatherForecastController.cs b/Controllers/WeatherForecastController.cs index f994203..d30f575 100644 --- a/Controllers/WeatherForecastController.cs +++ b/Controllers/WeatherForecastController.cs @@ -30,7 +30,7 @@ namespace DiscordApp.Controllers var channel = guild.GetChannel(channelid) as ITextChannel; await Console.Out.WriteLineAsync(channel.Name); var messages = (channel.GetMessagesAsync().FlattenAsync().Result); - var message = messages.Where(k => k.Author.Id == Startup.discordSocketClient.GetApplicationInfoAsync().Result.Id && k.Type != MessageType.ThreadStarterMessage) as IUserMessage; + var message = messages.FirstOrDefault(k => k.Author.Id == 1166079976446103602 ) as IUserMessage; await Console.Out.WriteLineAsync(message.Author.GlobalName); await message.ModifyAsync(func => {