Skip to content

Instantly share code, notes, and snippets.

@AngeloCore
Last active January 1, 2022 16:33
Show Gist options
  • Save AngeloCore/a7ab49803f8aefe0c363a34366153993 to your computer and use it in GitHub Desktop.
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
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
* */
/**
* No need to define it
* */
module.exports = {
name: 'reply',
category: 'Test',
run: (client, message, args) => {
message.lineReply('This is reply with @mention');
}
}
@Allvaa
Copy link

Allvaa commented Apr 21, 2021

i don't need it, i just need a confession

@Allvaa
Copy link

Allvaa commented Apr 21, 2021

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

@Allvaa
Copy link

Allvaa commented Apr 21, 2021

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