mirror of
				https://gitlab.com/Kwoth/nadekobot.git
				synced 2025-11-04 00:34:26 -05:00 
			
		
		
		
	.clubdesc will now have a nicer response
This commit is contained in:
		@@ -319,9 +319,23 @@ public partial class Xp
 | 
			
		||||
        public async partial Task ClubDescription([Leftover] string desc = null)
 | 
			
		||||
        {
 | 
			
		||||
            if (_service.SetDescription(ctx.User.Id, desc))
 | 
			
		||||
                await ReplyConfirmLocalizedAsync(strs.club_desc_updated(Format.Bold(desc ?? "-")));
 | 
			
		||||
            {
 | 
			
		||||
                desc = string.IsNullOrWhiteSpace(desc)
 | 
			
		||||
                    ? "-"
 | 
			
		||||
                    : desc;
 | 
			
		||||
                
 | 
			
		||||
                var eb = _eb.Create(ctx)
 | 
			
		||||
                            .WithAuthor(ctx.User)
 | 
			
		||||
                            .WithTitle(GetText(strs.club_desc_update))
 | 
			
		||||
                            .WithOkColor()
 | 
			
		||||
                            .WithDescription(desc);
 | 
			
		||||
 | 
			
		||||
                await ctx.Channel.EmbedAsync(eb);
 | 
			
		||||
            }
 | 
			
		||||
            else
 | 
			
		||||
            {
 | 
			
		||||
                await ReplyErrorLocalizedAsync(strs.club_desc_update_failed);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        [Cmd]
 | 
			
		||||
 
 | 
			
		||||
@@ -838,7 +838,7 @@
 | 
			
		||||
  "club_user_ban_fail": "Failed to ban. You're either not the club owner, or that user is not in your club or applied to it.",
 | 
			
		||||
  "club_user_unbanned": "Unbanned user {0} in {1} club.",
 | 
			
		||||
  "club_user_unban_fail": "Failed to unban. You're either not the club owner, or that user is not in your club or applied to it.",
 | 
			
		||||
  "club_desc_updated": "Updated club description to {0}",
 | 
			
		||||
  "club_desc_update": "Club Description Updated",
 | 
			
		||||
  "club_desc_update_failed": "Failed changing club description.",
 | 
			
		||||
  "club_disbanded": "Club {0} has been disbanded",
 | 
			
		||||
  "club_disband_error": "Error. You are either not in a club, or you are not the owner of your club.",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user