Add optional compact parameter for party embed display#116
Add optional compact parameter for party embed display#116
Conversation
- Removed global EMBED_FIELD_INLINE constant - Added 'compact' boolean field to party data structure (default: False) - Updated create_party_embed to use party['compact'] for inline field setting - Added optional compact parameter to party_create command - Updated CreatePartyModal, party_template_use, and party_list to use compact setting - Default behavior is NOT compact (inline=False) for better readability Co-authored-by: psykzz <1134201+psykzz@users.noreply.github.com>
|
@claude[agent] make it possible to edit existing (pre-change) parties to also make them compact or not. |
- Added new `party compact` command to toggle compact mode for existing parties - Works for both newly created parties and pre-existing parties - Follows same permission pattern as other party edit commands (owner or admin) - Updates party message immediately and logs changes to modlog - Supports both True (compact/inline) and False (stacked) display modes Agent-Logs-Url: https://github.com/psykzz/cogs/sessions/0eca8b3f-be15-4623-a8d3-82b3d8ecc63e Co-authored-by: psykzz <1134201+psykzz@users.noreply.github.com>
Added Usage:
The command follows the same permission model as other party edit commands (owner or admin only) and immediately updates the party embed. (80ab4cf) |
|
@copilot is this also support in the edit modal? |
Agent-Logs-Url: https://github.com/psykzz/cogs/sessions/d1a2ceb9-f2f4-49e0-a61c-3b9a8db7d542 Co-authored-by: psykzz <1134201+psykzz@users.noreply.github.com>
Agent-Logs-Url: https://github.com/psykzz/cogs/sessions/d1a2ceb9-f2f4-49e0-a61c-3b9a8db7d542 Co-authored-by: psykzz <1134201+psykzz@users.noreply.github.com>
It wasn't — both modals were already at Discord's 5-field limit. Added compact support by merging |
Party embeds now support configurable inline field display via an optional
compactboolean parameter. By default, parties use non-compact mode (stacked fields) for better readability.Changes
EMBED_FIELD_INLINEin favor of per-party configurationcompactfield: Party data structure now includescompact: bool(default:False)create_party_embed()readsparty.get("compact", False)to control inline displayparty createaccepts optionalcompactparameterAll party creation paths (command, modal, template) properly initialize the compact field.