mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 01:38:27 -04:00
Removed a duplicate string key
This commit is contained in:
@@ -175,14 +175,16 @@ public partial class Xp
|
|||||||
|
|
||||||
var club = _service.GetClubWithBansAndApplications(ctx.User.Id);
|
var club = _service.GetClubWithBansAndApplications(ctx.User.Id);
|
||||||
if (club is null)
|
if (club is null)
|
||||||
return ReplyErrorLocalizedAsync(strs.club_not_exists_owner);
|
return ReplyErrorLocalizedAsync(strs.club_admin_perms);
|
||||||
|
|
||||||
var bans = club.Bans.Select(x => x.User).ToArray();
|
var bans = club.Bans.Select(x => x.User).ToArray();
|
||||||
|
|
||||||
return ctx.SendPaginatedConfirmAsync(page,
|
return ctx.SendPaginatedConfirmAsync(page,
|
||||||
_ =>
|
_ =>
|
||||||
{
|
{
|
||||||
var toShow = string.Join("\n", bans.Skip(page * 10).Take(10).Select(x => x.ToString()));
|
var toShow = string.Join("\n", bans
|
||||||
|
.Skip(page * 10).Take(10)
|
||||||
|
.Select(x => x.ToString()));
|
||||||
|
|
||||||
return _eb.Create()
|
return _eb.Create()
|
||||||
.WithTitle(GetText(strs.club_bans_for(club.ToString())))
|
.WithTitle(GetText(strs.club_bans_for(club.ToString())))
|
||||||
@@ -201,7 +203,7 @@ public partial class Xp
|
|||||||
|
|
||||||
var club = _service.GetClubWithBansAndApplications(ctx.User.Id);
|
var club = _service.GetClubWithBansAndApplications(ctx.User.Id);
|
||||||
if (club is null)
|
if (club is null)
|
||||||
return ReplyErrorLocalizedAsync(strs.club_not_exists_owner);
|
return ReplyErrorLocalizedAsync(strs.club_admin_perms);
|
||||||
|
|
||||||
var apps = club.Applicants.Select(x => x.User).ToArray();
|
var apps = club.Applicants.Select(x => x.User).ToArray();
|
||||||
|
|
||||||
|
@@ -879,7 +879,6 @@
|
|||||||
"start_event_fail": "Event failed to start. Another event is running, or there was an error starting the event.",
|
"start_event_fail": "Event failed to start. Another event is running, or there was an error starting the event.",
|
||||||
"event_title": "{0} event started!",
|
"event_title": "{0} event started!",
|
||||||
"poll_closed": "Poll Closed!",
|
"poll_closed": "Poll Closed!",
|
||||||
"club_not_exists_owner": "You are not the owner or the admin of the club.",
|
|
||||||
"club_admin_add": "{0} is now a club admin.",
|
"club_admin_add": "{0} is now a club admin.",
|
||||||
"club_admin_remove": "{0} is no longer club admin.",
|
"club_admin_remove": "{0} is no longer club admin.",
|
||||||
"club_admin_error": "Error. You are either not the owner of the club, or that user is not in your club.",
|
"club_admin_error": "Error. You are either not the owner of the club, or that user is not in your club.",
|
||||||
|
Reference in New Issue
Block a user