Skip to content

How to edit custom status? #36

Answered by DeadLyBro
DeadLyBro asked this question in Q&A
Discussion options

You must be logged in to vote

Edit: rigwild updated index.js try new codes.

I write it myself;

Add any line on API;

customStatus: (emoji_id, emoji_name, expires_at, text) => apiCall(`/users/@me/settings`, { custom_status: { 'emoji_id': emoji_id, 'emoji_name': emoji_name, 'expires_at': expires_at, 'text': text } }, 'PATCH'),

This is how to use;

{
	await api.customStatus("emoji_id", "👍", "ISO8601 Expire time", "Your text") 
	// If you're not have Nitro change "emoji_id" to null. 
	// ISO8601 Expire Time Example: 2025-03-01T13:00:00Z
	// Custom Status for 30 Second :     new Date(Date.now() + 30 * 1000).toJSON() 
	// Thanks to Rigwild.
}

This is example;

{
	await api.customStatus(null, "👍", new Date(Date.now() + 30 * 1000).

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@DeadLyBro
Comment options

Comment options

You must be logged in to vote
2 replies
@rigwild
Comment options

@DeadLyBro
Comment options

Answer selected by DeadLyBro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants