Skip to content

/index

Manage local Discord retrieval data

All commands / Usage and permissions

[
{
"type": 1,
"name": "status",
"description": "Show current local retrieval status",
"options": []
},
{
"type": 1,
"name": "clear",
"description": "Reset runtime DBs, checkpoints, traces, and indexed messages",
"options": []
},
{
"type": 1,
"name": "repair",
"description": "Reconnect and validate the local runtime storage",
"options": []
},
{
"type": 1,
"name": "backfill_channel",
"description": "Index channel history (omit limit to run a resumable background crawl)",
"options": [
{
"channel_types": [
0,
11,
12
],
"name": "channel",
"description": "Channel to index",
"required": true,
"type": 7
},
{
"max_value": 50000,
"min_value": 1,
"type": 4,
"name": "limit",
"description": "Maximum messages (omit for full resumable background crawl)",
"required": false
}
]
},
{
"type": 1,
"name": "backfill_category",
"description": "Index all channels in a category",
"options": [
{
"channel_types": [
4
],
"name": "category",
"description": "Category to index",
"required": true,
"type": 7
},
{
"max_value": 5000,
"min_value": 1,
"type": 4,
"name": "limit_per_channel",
"description": "Maximum messages per channel (omit for full resumable background crawl)",
"required": false
}
]
},
{
"type": 1,
"name": "crawl_status",
"description": "Show the background crawler queue and progress",
"options": []
},
{
"type": 1,
"name": "crawl_stop",
"description": "Stop the background crawl for a specific channel",
"options": [
{
"channel_types": [
0,
11,
12
],
"name": "channel",
"description": "Channel whose background crawl should stop",
"required": true,
"type": 7
}
]
},
{
"type": 1,
"name": "crawl_pause",
"description": "Pause the background crawler",
"options": []
},
{
"type": 1,
"name": "crawl_resume",
"description": "Resume the background crawler",
"options": []
}
]