Last active
January 1, 2022 16:33
-
-
Save AngeloCore/a7ab49803f8aefe0c363a34366153993 to your computer and use it in GitHub Desktop.
Discord.js v12 Inline Reply Powered by npmjs.com/discord-reply EASY!!! For help: https://www.npmjs.com/package/discord-reply
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const discord = require('discord.js'); | |
require('discord-reply'); //⚠️ IMPORTANT: put this before your discord.Client() | |
const client = new discord.Client(); | |
client.on('ready', () => { | |
console.log(client.user.tag) | |
}); | |
client.on('message', async message => { | |
if (message.content.startsWith('!reply')) { | |
message.lineReply('Hey'); | |
message.lineReply(`My name is ${client.user.username}`, false); //true = mention | false = without mention | |
} | |
if (message.content.startsWith('!edit')) { | |
let m = await message.lineReply('This will be editied', false); | |
setTimeout(() => { | |
m.edit('Successfully editied'); | |
}, 1000) | |
} | |
}); | |
client.login('TOKEN'); | |
/** | |
* You can use | |
* message.lineReplyNoMention() | |
* method or | |
* message.lineReply('content', false) | |
* if yout don't want mention | |
* */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* No need to define it | |
* */ | |
module.exports = { | |
name: 'reply', | |
category: 'Test', | |
run: (client, message, args) => { | |
message.lineReply('This is reply with @mention'); | |
} | |
} |
Bruh are you even seeing the npm package Angelo is using a npm package not custom code bruh and no your not a god ok?
??? seems you don't know how the package works
are u stupid?
We won't deal with the kids
If you need i can re-code from 0 -_-
i don't need it, i just need a confession
WhoEver is Allvaa please stop i saw your inline reply code and it doesn't make sense to extending 2 classes for no reason.
dude, who is extending classes for no reason even tho both classes is used LMAO
i previously didn't extend 2 classes, i just update it yesterday, i made that just to support the replied_user
option on the edit method
well, i actually don't care who was the first. it's all about who wrote that code
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
that is like making the food then getting it all apart so unnecessary