Commit 21e03b80 authored by Wizkiller96's avatar Wizkiller96

Some bugfixes from global branch

parent 64f35bbb
Pipeline #83673595 passed with stage
in 3 minutes and 30 seconds
......@@ -17,7 +17,7 @@ namespace WizBot.Modules.Administration
{
public class RoleCommands : WizBotSubmodule<RoleCommandsService>
{
public enum Excl { Excl }
public enum Exclude { Excl }
public async Task InternalReactionRoles(bool exclusive, params string[] input)
{
......@@ -104,7 +104,7 @@ namespace WizBot.Modules.Administration
[UserPerm(GuildPerm.ManageRoles)]
[BotPerm(GuildPerm.ManageRoles)]
[Priority(1)]
public Task ReactionRoles(Excl _, params string[] input) =>
public Task ReactionRoles(Exclude _, params string[] input) =>
InternalReactionRoles(true, input);
[WizBotCommand, Usage, Description, Aliases]
......
......@@ -146,7 +146,7 @@ namespace WizBot.Modules.Administration.Services
if (!VcRoles.TryGetValue(guildId, out var guildVcRoles))
return false;
if (!guildVcRoles.TryGetValue(vcId, out _))
if (!guildVcRoles.TryRemove(vcId, out _))
return false;
using (var uow = _db.GetDbContext())
......
......@@ -93,7 +93,10 @@ namespace WizBot.Modules.Utility
var item = guildConfig.GuildRepeaters.FirstOrDefault(r => r.Id == repeater.Value.Repeater.Id);
if (item != null)
{
guildConfig.GuildRepeaters.Remove(item);
uow._context.Remove(item);
}
await uow.SaveChangesAsync();
}
await ctx.Channel.SendConfirmAsync(GetText("message_repeater"),
......
......@@ -23,7 +23,7 @@ namespace WizBot.Core.Services.Impl
private readonly IBotCredentials _creds;
private readonly DateTime _started;
public const string BotVersion = "2.29.10";
public const string BotVersion = "2.29.11";
public string Author => "🛠️ Kwoth#2560\n🛠️ Wizkiller96#0151";
public string Library => "Discord.Net";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment