Enable a channel
What setchannel does
[p]count setchannel enables counting in the channel you are in, or in the
channel you pass. It first verifies the bot's Message Content intent and
permissions in the channel, then reads the existing log on enable and derives
the checkpoint from it.
Enabling is accepted only when the channel is empty, or its whole log replays as a clean sequence from 1. Any non-counting message at setup, such as plain chatter or missing first counts, refuses the enable and nothing is deleted, so an accidental enable never wipes a chatty channel.
The setup check is bounded: it evaluates the channel's log up to ~1,000,000 messages (oldest first), so the refusal guarantee above applies within that window.
One exception: a channel whose log is a clean sequence from 1 except for same-author increments (for example, one previously counted under a bot that allowed repeats) is enabled anyway. Those increments are kept as-is and the author lock is frozen at the current count, so alternation is enforced from the next count on; the enable reply says so explicitly.
Without the Message Content intent the API returns empty content for every message, so counts could never be verified.
[p]count setchannelchecks the intent before anything else and refuses to enable the channel while it is off; nothing is enabled or deleted in that case. Turn the intent on, restart the bot, and run the command again.
When the enable is refused, the reply lists the offending messages: a breakdown by rule plus jump links, capped so the reply fits in one message.
After enabling
[p]count statusshows the current count, the next expected value, the last counter, the ledger size and any pending repair notice.[p]count removechanneldisables counting and deletes the channel state.
See the command reference for details.