31 lines
1.2 KiB
Markdown
31 lines
1.2 KiB
Markdown
---
|
|
name: discord-dm
|
|
description: Send a Discord message to an org member's DMs or a team channel via the ClaudeTools bot. Prepopulated with user + channel IDs. Use for copy-paste-friendly delivery of wrapped command lines (consent links, long one-liners) or to ping someone directly.
|
|
---
|
|
|
|
# /discord-dm — direct Discord messaging
|
|
|
|
Thin entry point to the `discord-dm` skill. Engine: `.claude/scripts/discord-dm.sh`.
|
|
|
|
## Usage
|
|
|
|
```
|
|
/discord-dm <recipient> <message> Send a DM (mike|howard|rob|winter) or post to a channel (#bot-alerts|#dev-alerts)
|
|
/discord-dm list Show known users + channel IDs
|
|
```
|
|
|
|
Examples:
|
|
|
|
```bash
|
|
bash .claude/scripts/discord-dm.sh mike "https://login.microsoftonline.com/.../adminconsent?client_id=..."
|
|
bash .claude/scripts/discord-dm.sh dev "build promoted to stable"
|
|
echo "$LONG_LINK" | bash .claude/scripts/discord-dm.sh mike
|
|
```
|
|
|
|
## Standing rule
|
|
|
|
Any **wrapped / long single-line output** (M365 consent links, long CLI one-liners,
|
|
URLs with query strings) should be **DM'd to `mike`** so it's cleanly copy-pasteable
|
|
rather than mangled by terminal wrapping. See `.claude/skills/discord-dm/SKILL.md`
|
|
for the recipient forms, prepopulated directory, and gotchas.
|