constdiscord=require('discord.js');require('discord-reply');//⚠️ IMPORTANT: put this before your discord.Client()constclient=newdiscord.Client();
Discord.js
Example
constdiscord=require('discord.js');require('discord-reply');//⚠️ IMPORTANT: put this before your discord.Client()constclient=newdiscord.Client();client.on('ready',()=>{console.log(client.user.tag)});client.on('message',asyncmessage=>{if(message.content.startsWith('!reply')){message.lineReply('Hey');//Line (Inline) Reply with mentionmessage.lineReplyNoMention(`My name is ${client.user.username}`);//Line (Inline) Reply without mention}});client.login('TOKEN');
Embed
if(message.content.startsWith('!reply')){letembed=newdiscord.MessageEmbed().setDescription(`Reply to ${message.author}`);message.lineReply(embed);//Line (Inline) Reply with mention//ormessage.lineReplyNoMention(embed);//Line (Inline) Reply without mention}
/** * No need to define it * */module.exports={name: 'reply',category: 'Test',run: (client,message,args)=>{message.lineReply('This is reply with @mention');}}