Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Discord Welcome Package ( Used Discord.js )

NotificationsYou must be signed in to change notification settings

1AhmedS/welcomerpackage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Features

  • Send welcome messages with customizable embed options
  • Easy to integrate with your existing Discord bot

Installation

To install the package, run the following command:

npm install welcomerpackage

Function: sendWelcomeMessage

ThesendWelcomeMessage function is used to send a customized welcome message to a new member joining your Discord server.

Parameters

  • member (GuildMember): The member who has joined the server.
  • options (WelcomeMessageOptions): An optional object to customize the welcome message embed.

WelcomeMessageOptions

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.

Example

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');

Contact

Support

If you need support or have any questions, you can contact me at:

Donate 💌

GitHub FollowBuy Me a Coffee


[8]ページ先頭

©2009-2025 Movatter.jp