Removed a duplicate string key

This commit is contained in:
Kwoth
2022-10-11 18:29:53 +02:00
parent eb01bb6c08
commit dc568fe0e2
2 changed files with 5 additions and 4 deletions

View File

@@ -175,14 +175,16 @@ public partial class Xp
var club = _service.GetClubWithBansAndApplications(ctx.User.Id);
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();
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()
.WithTitle(GetText(strs.club_bans_for(club.ToString())))
@@ -201,7 +203,7 @@ public partial class Xp
var club = _service.GetClubWithBansAndApplications(ctx.User.Id);
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();

View File

@@ -879,7 +879,6 @@
"start_event_fail": "Event failed to start. Another event is running, or there was an error starting the event.",
"event_title": "{0} event started!",
"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_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.",