mirror of
https://github.com/yawaflua/PL_JusticeBot.git
synced 2025-12-08 19:39:27 +02:00
hotfix?
This commit is contained in:
@@ -29,7 +29,8 @@ 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().FlattenAsync().Result).FirstOrDefault(k => k.Id == 1166079976446103602) as IUserMessage;
|
var messages = (channel.GetMessagesAsync().FlattenAsync().Result);
|
||||||
|
var message = messages.Where(k => k.Id == Startup.discordSocketClient.GetApplicationInfoAsync().Result.Id && k.Type != MessageType.ThreadStarterMessage) as IUserMessage;
|
||||||
await Console.Out.WriteLineAsync(message.Author.GlobalName);
|
await Console.Out.WriteLineAsync(message.Author.GlobalName);
|
||||||
await message.ModifyAsync(func =>
|
await message.ModifyAsync(func =>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ namespace DiscordApp
|
|||||||
{
|
{
|
||||||
client.Ready += ReadyAsync;
|
client.Ready += ReadyAsync;
|
||||||
handler.Log += LogAsync;
|
handler.Log += LogAsync;
|
||||||
|
|
||||||
await handler.AddModulesAsync(Assembly.GetEntryAssembly(), services);
|
await handler.AddModulesAsync(Assembly.GetEntryAssembly(), services);
|
||||||
var guildCommand = new SlashCommandBuilder();
|
var guildCommand = new SlashCommandBuilder();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user