delete discord message in bulk
Analysis
The skill is purpose-aligned, but it can use a Discord bot token to irreversibly bulk-delete channel messages, so it needs careful review before use.
Findings (2)
Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.
Checks for instructions or behavior that redirect the agent, misuse tools, execute unexpected code, cascade across systems, exploit user trust, or continue outside the intended task.
deleted_url = f"https://discord.com/api/v10/channels/{channel_id}/messages/bulk-delete" ... req = urllib.request.Request(deleted_url, data=data_to_send, method="POST", headers=headers)The script makes a direct Discord bulk-delete API call against a user-supplied channel ID. This is the intended function, but it is an irreversible moderation action and the code does not enforce an additional preview or confirmation step.
Checks whether tool use, credentials, dependencies, identity, account access, or inter-agent boundaries are broader than the stated purpose.
Create `token.json` ... "token": "tokenhere" ... OR set environment variable ... DISCORD_TOKEN ... Your Discord bot must have `MANAGE_MESSAGES` permission in target channels
The skill requires a Discord bot credential with message-management authority. This is expected for a deletion tool, but it grants meaningful moderation power wherever that bot has access.
