What are Discord Avatar Decorations?
Avatar decorations are animated frames and effects that Discord Nitro subscribers can apply to their profile pictures. Each decoration has a unique Snowflake ID that encodes when it was created.
How to Get Discord Decoration IDs
Method 1: Developer Mode
- Enable Developer Mode: Settings > Advanced > Developer Mode
- Right-click on an avatar with decoration
- Select "Copy ID" to get the decoration Snowflake ID
Method 2: Discord API
Use Discord API endpoints to fetch user profiles. The avatar_decoration_data field contains the decoration ID.
Discord Snowflake Structure
42 bits
Timestamp
Milliseconds since epoch
10 bits
Worker ID
0-1023 machines
12 bits
Sequence
0-4095 per ms
Decode Decoration IDs in Code
// JavaScript
function decodeDiscordId(id) {
const DISCORD_EPOCH = 1420070400000n;
const snowflake = BigInt(id);
const timestamp = Number((snowflake >> 22n) + DISCORD_EPOCH);
return new Date(timestamp);
}
// Example usage
const date = decodeDiscordId('1144058844004233369');
console.log(date.toISOString());
# Python
from datetime import datetime
def decode_discord_id(snowflake_id):
DISCORD_EPOCH = 1420070400000
timestamp = ((int(snowflake_id) >> 22) + DISCORD_EPOCH) / 1000
return datetime.fromtimestamp(timestamp)
# Example usage
date = decode_discord_id('1144058844004233369')
print(date.isoformat())
Common Use Cases
- Track decoration releases: See when new avatar decorations were added to Discord
- Bot development: Verify decoration IDs in Discord bot applications
- Collection tracking: Organize decorations by release date
- API debugging: Validate decoration IDs from Discord API responses