Documentación / Analytics / Comandos / /chart messages
Info Server only

/chart messages

Messages per day

Usage

Generated
/chart messages [days] [post]
OptionTipoObligatorioDescripción
days whole number No Time window
7 days14 days30 days90 days
post yes or no No Post the chart in this channel instead of only to you

Who can run it

Generated
Discord defaultEvery member
Command Access presetEveryone
Always allowedThe server owner and, by default, Administrators
Change itDashboard, Services, Analytics, Commands

Open to every member unless you lock it to roles or channels in Command Access. How Command Access works.

What the bot needs

Generated

Analytics is granted these permissions by the invite link. A command that finds one missing replies privately with what it could not do and changes nothing.

View ChannelSend MessagesEmbed LinksManage Roles

Comportamiento

Checked against the code 2026-09-21

Draws a line chart image of messages per day across the whole server. The chart is titled "Messages per day" with the subtitle "Last N days", and three totals sit under it: Messages, Avg/day and Peak day. Days are cut at midnight in the timezone from the Analytics Settings page, which follows the server timezone unless you change it. The chart uses the colours chosen on the Card Designer page.

The days option offers 7, 14, 30 or 90 days. Leave it out and you get 30. The window never reaches past what the server keeps: on a server that keeps 30 days of data, a 90-day request draws 30 days and the reply says "Showing 30 days: this server keeps 30 days of Analytics data." The Data retention setting decides that limit.

The reply is private by default, so only you see the chart. Set post to yes to post the chart in the channel for everyone.

Good to know

  • Works in servers only, and only while Analytics is turned on there. If it is off, the private reply is "Analytics not enabled here. Use /yourbot to see how to turn it on."
  • Bot accounts are never drawn on this chart, whatever the Ignore bots setting says.
  • Messages in excluded channels, and in threads under them, are not recorded, so they never reach the chart.
  • If the chart cannot be drawn, the private reply is "That chart is not available right now. Try again in a moment."
  • /chart voice, /chart members, /chart channel and /chart member take the same days and post options. /server shows the 30-day trend on one card, and the dashboard's Messages page covers message volume and trends.
YourBot docs Reference tables are generated from the code that is running. Ask in Discord Suggest a correction