.resetglobalperms .resetperms fixed

This commit is contained in:
Master Kwoth 2017-06-15 20:20:34 +02:00
parent 4e7b7a6ee5
commit 3bf224ab57
4 changed files with 8 additions and 4 deletions

View File

@ -43,6 +43,10 @@ namespace NadekoBot.Modules.Gambling
var members = role.Members().Where(u => u.Status != UserStatus.Offline);
var membersArray = members as IUser[] ?? members.ToArray();
if (membersArray.Length == 0)
{
}
var usr = membersArray[new NadekoRandom().Next(0, membersArray.Length)];
await Context.Channel.SendConfirmAsync("🎟 "+ GetText("raffled_user"), $"**{usr.Username}#{usr.Discriminator}**", footer: $"ID: {usr.Id}").ConfigureAwait(false);
}

View File

@ -6,7 +6,7 @@ using NadekoBot.Services.Database.Models;
using NadekoBot.Services.Permissions;
using System.Threading.Tasks;
namespace NadekoBot.Modules.Permissions.Commands
namespace NadekoBot.Modules.Permissions
{
public partial class Permissions
{

View File

@ -290,7 +290,7 @@ namespace NadekoBot
// .Select(x => x.Key + $"({x.Count()})")));
//unload modules which are not available on the public bot
#if GLOBAL_NADEKO
#if GLOBAL_NADEKO
CommandService
.Modules
.ToArray()

View File

@ -153,7 +153,7 @@
"administration_old_nick": "Old nickname",
"administration_old_topic": "Old topic",
"administration_perms": "Error. Most likely I don't have sufficient permissions.",
"administration_perms_reset": "Permissions for this server are reset.",
"permissions_perms_reset": "Permissions for this server are reset.",
"administration_prot_active": "Active protections",
"administration_prot_disable": "{0} has been **disabled** on this server.",
"administration_prot_enable": "{0} Enabled",
@ -765,7 +765,7 @@
"gambling_shop_role": "You will get {0} role.",
"gambling_type": "Type",
"utility_clpa_next_update": "Next update in {0}",
"administration_global_perms_reset": "Global permissions have been reset.",
"permissions_global_perms_reset": "Global permissions have been reset.",
"administration_gvc_disabled": "Game Voice Channel feature has been disabled on this server.",
"administration_gvc_enabled": "{0} is a Game Voice Channel now.",
"administration_not_in_voice": "You are not in a voice channel on this server.",