Actions44
- Message Actions
- User Profile Actions
- Server Actions
- Channel Actions
- Role Actions
- Member Actions
- Presence Actions
- Invite Actions
Presence → Set Activity
AI-generatedSummary
Sets the Discord user's activity presence.
Inputs
- activityType (required) — Type of activity. Default: PLAYING. Options: Playing (PLAYING), Streaming (STREAMING), Listening (LISTENING), Watching (WATCHING), Competing (COMPETING).
- activityName (required) — Name of the activity. Default: empty string.
- streamUrl — URL for streaming activity. Default: empty string. Shown only when activityType is STREAMING.
Output shape
object
Returned after execution. The implementation consumes the activityName parameter and calls Discord's setActivity, returning success and the activity name.
Examples
Example 1: Set user activity to playing a game
activityName: 'My Game', activityType: 'PLAYING' → returns { success: true, activityName: 'My Game' }