
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
npm i discord-arts@latest
Generates the card of a user/bot, with its badges.
profileImage(userId, {
customTag?: string, // Text below the user
customBadges?: string[], // Your own png badges (path and URL)
customBackground?: string, // Change the background to any image (path and URL)
overwriteBadges?: boolean, // Merge your badges with the discord defaults
badgesFrame?: boolean, // Creates a small frame behind the badges
usernameColor?: string, // Username HEX color
tagColor?: string, // Tag HEX color
borderColor?: string | string[], // Border HEX color, can be gradient if 2 colors are used
borderAllign?: string, // Gradient alignment if 2 colors are used
presenceStatus?: string, // User status to be displayed below the avatar
squareAvatar?: boolean, // Change avatar shape to a square
rankData?: {
currentXp: number, // Current user XP
requiredXp: number, // XP required to level up
level: number, // Current user level
rank?: number, // Position on the leaderboard
barColor?: string, // HEX XP bar color
}
})
const { AttachmentBuilder } = require('discord.js');
const { profileImage } = require('discord-arts');
await interaction.deferReply();
const user = interaction.options.getUser('user-option');
const buffer = await profileImage(user.id, {
customTag: 'Admin',
...imgOptions
});
const attachment = new AttachmentBuilder(buffer, { name: 'profile.png' });
interaction.followUp({ files: [attachment] });
profileImage('ID')
profileImage('ID', { customBadges: [ './skull.png', './letter.png', './rocket.png', './crown.png', './hearth.png' ], borderColor: '#087996', presenceStatus: 'dnd', badgesFrame: true, rankData: { currentXp: 2100, requiredXp: 3000, rank: 10, level: 20, barColor: '0b7b95' } });
profileImage('ID', { customBadges: [ './booster.png','./orange.png', './giveaway.png' ], overwriteBadges: false, usernameColor: '#d9dfef', borderColor: ['#f90257', '#043a92'], presenceStatus: 'idle', squareAvatar: true });
profileImage('ID', { customTag: 'Minecraft Bot', customBackground: './imgs/axoBackground.png', customBadges: [ './booster.png','./orange.png'], usernameColor: '#ffbddf', borderColor: '#fe6a90', presenceStatus: 'online', squareAvatar: true, badgesFrame: true });
π₯ Issues / Feedback
Any problem or feedback, open an issue in our github repository here
FAQs
Customized cards with Discord style
The npm package meta-arts receives a total of 0 weekly downloads. As such, meta-arts popularity was classified as not popular.
We found that meta-arts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.Β It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.