Skip to content

Use a Modal for atl-spam to allow multiline messages#43

Merged
johnvictorfs merged 1 commit into
masterfrom
codex/implement-multiline-input-for-atl-spam
Mar 1, 2026
Merged

Use a Modal for atl-spam to allow multiline messages#43
johnvictorfs merged 1 commit into
masterfrom
codex/implement-multiline-input-for-atl-spam

Conversation

@johnvictorfs

Copy link
Copy Markdown
Owner

Motivation

  • Slash command text inputs are single-line and previously forced users to type literal \n sequences which were sent raw, so the command needed a native multiline editor for composing spam preview messages.

Description

  • Add SpamMessageModal (discord.ui.Modal) with a paragraph TextInput to capture multiline message content natively (bot/cogs/admin.py).
  • Rework atl_spam to show the modal first, wait for submission, and then continue the existing preview/confirmation/send flow using the modal's submission interaction.
  • Preserve attachment support and confirmation UI while converting literal "\\n" sequences to real line breaks ("\n") for backward compatibility.
  • Route user-facing responses (preview, confirmation prompts, progress) through the modal's submitted_interaction to keep interactions consistent.

Testing

  • Ran python -m compileall bot/cogs/admin.py which completed successfully.

Codex Task

@johnvictorfs
johnvictorfs merged commit 1e6d531 into master Mar 1, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant