.resetglobalperms .resetperms fixed
This commit is contained in:
parent
4e7b7a6ee5
commit
3bf224ab57
@ -43,6 +43,10 @@ namespace NadekoBot.Modules.Gambling
|
|||||||
|
|
||||||
var members = role.Members().Where(u => u.Status != UserStatus.Offline);
|
var members = role.Members().Where(u => u.Status != UserStatus.Offline);
|
||||||
var membersArray = members as IUser[] ?? members.ToArray();
|
var membersArray = members as IUser[] ?? members.ToArray();
|
||||||
|
if (membersArray.Length == 0)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
var usr = membersArray[new NadekoRandom().Next(0, membersArray.Length)];
|
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);
|
await Context.Channel.SendConfirmAsync("🎟 "+ GetText("raffled_user"), $"**{usr.Username}#{usr.Discriminator}**", footer: $"ID: {usr.Id}").ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@ using NadekoBot.Services.Database.Models;
|
|||||||
using NadekoBot.Services.Permissions;
|
using NadekoBot.Services.Permissions;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace NadekoBot.Modules.Permissions.Commands
|
namespace NadekoBot.Modules.Permissions
|
||||||
{
|
{
|
||||||
public partial class Permissions
|
public partial class Permissions
|
||||||
{
|
{
|
||||||
|
@ -153,7 +153,7 @@
|
|||||||
"administration_old_nick": "Old nickname",
|
"administration_old_nick": "Old nickname",
|
||||||
"administration_old_topic": "Old topic",
|
"administration_old_topic": "Old topic",
|
||||||
"administration_perms": "Error. Most likely I don't have sufficient permissions.",
|
"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_active": "Active protections",
|
||||||
"administration_prot_disable": "{0} has been **disabled** on this server.",
|
"administration_prot_disable": "{0} has been **disabled** on this server.",
|
||||||
"administration_prot_enable": "{0} Enabled",
|
"administration_prot_enable": "{0} Enabled",
|
||||||
@ -765,7 +765,7 @@
|
|||||||
"gambling_shop_role": "You will get {0} role.",
|
"gambling_shop_role": "You will get {0} role.",
|
||||||
"gambling_type": "Type",
|
"gambling_type": "Type",
|
||||||
"utility_clpa_next_update": "Next update in {0}",
|
"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_disabled": "Game Voice Channel feature has been disabled on this server.",
|
||||||
"administration_gvc_enabled": "{0} is a Game Voice Channel now.",
|
"administration_gvc_enabled": "{0} is a Game Voice Channel now.",
|
||||||
"administration_not_in_voice": "You are not in a voice channel on this server.",
|
"administration_not_in_voice": "You are not in a voice channel on this server.",
|
||||||
|
Loading…
Reference in New Issue
Block a user