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');
}
}
@tovade
Copy link

tovade commented Apr 21, 2021

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?

@Allvaa
Copy link

Allvaa commented Apr 21, 2021

who says i'm a god? and what do you mean with "basic code"?

@Allvaa
Copy link

Allvaa commented Apr 21, 2021

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?

i don't really get what you talking about, sorry

@tovade
Copy link

tovade commented Apr 21, 2021

Basicly angelo made that npm package called discord-reply what this code is using so i don't get your confusion

@AngeloCore
Copy link
Author

who says i'm a god? and what do you mean with "basic code"?

-_-
Who is developer can create discord inline reply
It's not just you who can do it...

@Allvaa
Copy link

Allvaa commented Apr 21, 2021

who says i'm a god? and what do you mean with "basic code"?

-_-
Who is developer can create discord inline reply
It's not just you who can do it...

i'm not saying that only myself make this. the prob is the code it's totally same, like, variable name, statement, etc

@Allvaa
Copy link

Allvaa commented Apr 21, 2021

Basicly angelo made that npm package called discord-reply what this code is using so i don't get your confusion

if you asking "have you seen the npm package?", yes of course lol. how can i check the code if idk the package name

@tovade
Copy link

tovade commented Apr 21, 2021

image
is that clear enough???????

@Allvaa
Copy link

Allvaa commented Apr 21, 2021

the package contains the code smh

@Allvaa
Copy link

Allvaa commented Apr 21, 2021

you better do npm i to the package and open node_modules, then search the package and check its contents

@tovade
Copy link

tovade commented Apr 21, 2021

why is that necessary??????????????????????????????????????????????

@tovade
Copy link

tovade commented Apr 21, 2021

that is like making the food then getting it all apart so unnecessary

@Allvaa
Copy link

Allvaa commented Apr 21, 2021

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

@tovade
Copy link

tovade commented Apr 21, 2021

are u stupid?

@AngeloCore
Copy link
Author

We won't deal with the kids

@AngeloCore
Copy link
Author

If you need i can re-code from 0 -_-

@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