diff --git a/RegexBot/Module/AutoMod/Responses/Report.cs b/RegexBot/Module/AutoMod/Responses/Report.cs index 6cad530..fc5d938 100644 --- a/RegexBot/Module/AutoMod/Responses/Report.cs +++ b/RegexBot/Module/AutoMod/Responses/Report.cs @@ -33,7 +33,7 @@ namespace Noikoio.RegexBot.Module.AutoMod.Responses await target.SendMessageAsync("", embed: BuildReportEmbed(msg)); } - private EmbedBuilder BuildReportEmbed(SocketMessage msg) + private Embed BuildReportEmbed(SocketMessage msg) { string invokeLine = msg.Content; @@ -104,7 +104,7 @@ namespace Noikoio.RegexBot.Module.AutoMod.Responses }); } - return finalem; + return finalem.Build(); } } } diff --git a/RegexBot/Module/ModCommands/Commands/_CommandBase.cs b/RegexBot/Module/ModCommands/Commands/_CommandBase.cs index 23bf62e..53a0671 100644 --- a/RegexBot/Module/ModCommands/Commands/_CommandBase.cs +++ b/RegexBot/Module/ModCommands/Commands/_CommandBase.cs @@ -118,7 +118,7 @@ namespace Noikoio.RegexBot.Module.ModCommands.Commands Title = "Usage", Description = DefaultUsageMsg }; - await target.SendMessageAsync(message ?? "", embed: usageEmbed); + await target.SendMessageAsync(message ?? "", embed: usageEmbed.Build()); } /// diff --git a/RegexBot/Module/ModLogs/MessageCache.cs b/RegexBot/Module/ModLogs/MessageCache.cs index 3419d5c..fd1d7d0 100644 --- a/RegexBot/Module/ModLogs/MessageCache.cs +++ b/RegexBot/Module/ModLogs/MessageCache.cs @@ -139,7 +139,7 @@ namespace Noikoio.RegexBot.Module.ModLogs // Prepare and send out message var em = CreateReportEmbed(isDelete, ucd, messageId, ch, (msgContent, editMsg), msgCreateTime, msgEditTime); - await cfg.RptTarget.SendMessageAsync("", embeds: new Embed[] { em }); + await cfg.RptTarget.SendMessageAsync("", embeds: new Embed[] { em.Build() }); } const int ReportCutoffLength = 500; diff --git a/RegexBot/Module/VoteTempChannel/VoteTempChannel.cs b/RegexBot/Module/VoteTempChannel/VoteTempChannel.cs index f4b375d..68da8d1 100644 --- a/RegexBot/Module/VoteTempChannel/VoteTempChannel.cs +++ b/RegexBot/Module/VoteTempChannel/VoteTempChannel.cs @@ -178,7 +178,7 @@ namespace Noikoio.RegexBot.Module.VoteTempChannel manageChannel: PermValue.Allow, sendMessages: PermValue.Allow, manageMessages: PermValue.Allow, - managePermissions: PermValue.Allow)); + manageRoles: PermValue.Allow)); } catch (Discord.Net.HttpException ex) { @@ -208,7 +208,7 @@ namespace Noikoio.RegexBot.Module.VoteTempChannel manageChannel: PermValue.Allow, sendMessages: PermValue.Allow, manageMessages: PermValue.Allow, - managePermissions: PermValue.Allow)); + manageRoles: PermValue.Allow)); } catch (Discord.Net.HttpException ex) { diff --git a/RegexBot/Properties/PublishProfiles/DebugProfile.pubxml b/RegexBot/Properties/PublishProfiles/DebugProfile.pubxml deleted file mode 100644 index a6217fd..0000000 --- a/RegexBot/Properties/PublishProfiles/DebugProfile.pubxml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - FileSystem - Debug - netcoreapp2.0 - bin\Debug\PublishOutput - - \ No newline at end of file diff --git a/RegexBot/Properties/PublishProfiles/StableProfile.pubxml b/RegexBot/Properties/PublishProfiles/StableProfile.pubxml deleted file mode 100644 index 548b9af..0000000 --- a/RegexBot/Properties/PublishProfiles/StableProfile.pubxml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - FileSystem - Release - netcoreapp2.0 - bin\Release\PublishOutput - - \ No newline at end of file diff --git a/RegexBot/RegexBot.csproj b/RegexBot/RegexBot.csproj index c9a60e8..7a464c3 100644 --- a/RegexBot/RegexBot.csproj +++ b/RegexBot/RegexBot.csproj @@ -2,12 +2,12 @@ Exe - netcoreapp2.0 + netcoreapp3.1 Noikoio.RegexBot Highly configurable Discord moderation bot Noikoio - 2.6.4 + 2.6.5 @@ -15,8 +15,8 @@ - - + +