- Notifications
You must be signed in to change notification settings - Fork0
Discord Welcome Package ( Used Discord.js )
NotificationsYou must be signed in to change notification settings
1AhmedS/welcomerpackage
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Welcome to the Discord Welcome Package! This package is designed to help you easily send customized welcome messages to new members joining your Discord server usingdiscord.js
.
- Send welcome messages with customizable embed options
- Easy to integrate with your existing Discord bot
To install the package, run the following command:
npm install welcomerpackage
ThesendWelcomeMessage
function is used to send a customized welcome message to a new member joining your Discord server.
member
(GuildMember): The member who has joined the server.options
(WelcomeMessageOptions): An optional object to customize the welcome message embed.
TheWelcomeMessageOptions
interface allows you to customize the welcome message embed:
color
(string): The color of the embed. Default is#0099ff
.title
(string): The title of the embed. Default isWelcome!
.description
(string): The description of the embed. Default isWelcome to the server, {username}!
.thumbnailUrl
(string): The URL of the thumbnail image. Default is the user's avatar URL.channelId
(string): The ID of the channel where the welcome message will be sent. Default is the system channel.imageUrl
(string): The URL of the image to be included in the embed.
import{Client,GatewayIntentBits}from'discord.js';import{sendWelcomeMessage}from'welcomer-pack';import{WelcomeMessageOptions}from'welcomer-pack/types';constclient=newClient({intents:[GatewayIntentBits.Guilds,GatewayIntentBits.GuildMembers,],});client.on('guildMemberAdd',(member)=>{constoptions:WelcomeMessageOptions={title:'Welcome to our server!',description:'We hope you enjoy your stay.',thumbnailUrl:'https://example.com/welcome.png',color:'#00ff00',channelId:'123456789012345678',imageUrl:'https://example.com/image.png'};sendWelcomeMessage(member,options);});client.login('your-bot-token');
- Discord :discord.gg/hTkzz2ZzJA
- Instagram :@nsl2j
- GitHub :1AhmedS
- X :@nsl2j
- LinkedIn:1AhmedS
If you need support or have any questions, you can contact me at:
About
Discord Welcome Package ( Used Discord.js )
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.