mirror of
https://github.com/yawaflua/PL_JusticeBot.git
synced 2025-12-09 20:09:31 +02:00
add finder of message
This commit is contained in:
@@ -29,7 +29,7 @@ namespace DiscordApp.Controllers
|
|||||||
await Console.Out.WriteLineAsync(guild.Name);
|
await Console.Out.WriteLineAsync(guild.Name);
|
||||||
var channel = guild.GetChannel(channelid) as ITextChannel;
|
var channel = guild.GetChannel(channelid) as ITextChannel;
|
||||||
await Console.Out.WriteLineAsync(channel.Name);
|
await Console.Out.WriteLineAsync(channel.Name);
|
||||||
var message = channel.GetMessagesAsync().LastOrDefaultAsync().Result.FirstOrDefault() as IUserMessage;
|
var message = channel.GetMessagesAsync().FirstOrDefaultAsync(k => k.Any(l => l.Author.Id == 1166079976446103602)).Result.FirstOrDefault() as IUserMessage;
|
||||||
await Console.Out.WriteLineAsync(message.Author.GlobalName);
|
await Console.Out.WriteLineAsync(message.Author.GlobalName);
|
||||||
await message.ModifyAsync(func =>
|
await message.ModifyAsync(func =>
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user