mirror of
https://github.com/yawaflua/PL_JusticeBot.git
synced 2025-12-08 19:39:27 +02:00
add cw debug
This commit is contained in:
@@ -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!";
|
||||
|
||||
Reference in New Issue
Block a user