messages

.edit

replace your own messages with custom text or a sentence preset.

also known as.e
01

usage

command
.edit [options]

<required> · [optional] · replace placeholders before sending.

before you use it ↗
  • only your own messages are selected. system messages and the invocation are excluded.
  • without --number, the selection has no message-count limit.
  • the command deletes its invocation before a normal run. verify mode applies no edits.
  • the edit command does not support --scope.
  • without --text, messages receive shuffled sentences from the default pool. the harry and polish presets require their respective installed sentence pools.
  • the reserved text values blank, harry, and polish select presets regardless of their casing.
  • blacklisted source and target channels are blocked.
  • flags can be reordered, but values must follow their flags. use straight quotes to group text containing spaces. text and filter values cannot begin with a dash.
02

options & arguments

-t, --text <text|blank|harry|polish>

set replacement text up to 2000 characters. blank uses a visually blank message, while harry and polish use their sentence pools. omitted text uses the default random sentence pool.

-n, --number <count>

limit the number of matching messages to edit. without it, all matching messages are selected.

-f, --filter <text>

match a case-sensitive substring in the original message text.

-e, --except

invert the combined text and attachment filters. cannot be combined with --message.

-m, --message <message_id>

use an exclusive boundary. edit newer messages by default, or older messages with --reverse.

-c, --channel <channel_id/user_id>

target a text channel, thread, dm, group dm, or a user's dm by numeric id.

-r, --reverse

process messages from oldest to newest and select older messages when using a boundary.

-a, --attachments <types>

match images, videos, files, links, or all. combine types with commas, such as images,links.

--skip-pinned

skip pinned messages.

-v, --verify

send messages.txt listing the messages that would be edited.

-h, --help

show the command's built-in help.

03

try it like this

preview five messages selected for replacement.

example
.edit -t message updated -n 5 -v

replace your five newest selected messages with the custom text.

example
.edit -t message updated -n 5

make three selected messages visually blank while skipping pinned messages.

example
.edit -t blank -n 3 --skip-pinned

replace up to ten matching messages with lines from the polish sentence pool.

example
.edit -t polish -f old draft -n 10