discord-avatar-stealer v1.0.1
Discord Avatar Fetcher
A simple Node.js module to fetch Discord user avatars.
Installation
npm install discord-avatar-stealer
Usage
const getDiscordAvatar = require('discord-avatar-stealer');
async function fetchAvatar() { try { const userId = '123456789012345678'; const token = 'TU_TOKEN_DE_BOT_DISCORD'; const avatarUrl = await getDiscordAvatar(userId, token); console.log('Avatar URL:', avatarUrl); } catch (error) { console.error('Error fetching avatar:', error); } }
fetchAvatar();
Parameters
userId
(string): The Discord user IDtoken
(string): Your Discord bot token
Returns
Returns a Promise that resolves to a string containing the URL of the user's avatar. If the user has no custom avatar, it will return the default Discord avatar URL.
Features
- Supports both static and animated (GIF) avatars
- Handles default Discord avatars
- Returns high-quality avatar URLs (1024px)
Requirements
- Node.js
- A Discord Bot Token
License
ISC
Author
Contributing
Feel free to submit issues and pull requests.
Support
If you have any questions or need help, please open an issue in the GitHub repository.
Remember to replace the default Discord bot token with your own token when using this module.