Actions44
- Message Actions
- User Profile Actions
- Server Actions
- Channel Actions
- Role Actions
- Member Actions
- Presence Actions
- Invite Actions
User Profile → Update Username
AI-generatedSummary
Updates the Discord user's username via the Discord API.
Inputs
- username (required) — The new username to set for the authenticated Discord user.
Output shape
object
Returns { success: true, username:
} on success.
Examples
Example 1: Change the bot's display username.
Provide the desired username string as the 'username' parameter.