1.0.1 • Published 9 months ago

discord-avatar-stealer v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

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 ID
  • token (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

Your Name

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.

1.0.1

9 months ago

1.0.0

9 months ago