Skip to content

Instantly share code, notes, and snippets.

@AngeloCore
Last active January 1, 2022 16:33
Show Gist options
  • Select an option

  • Save AngeloCore/a7ab49803f8aefe0c363a34366153993 to your computer and use it in GitHub Desktop.

Select an option

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

Allvaa commented Apr 21, 2021

Copy link
Copy Markdown

imagine copying code and turns it into a package without giving any credit to the original writer

@AngeloCore

Copy link
Copy Markdown
Author

imagine thinking that only you know how to code

@tovade

tovade commented Apr 21, 2021

Copy link
Copy Markdown

imagine copying code and turns it into a package without giving any credit to the original writer

imagine not seeing the npm package :)

@Allvaa

Allvaa commented Apr 21, 2021

Copy link
Copy Markdown

imagine thinking that only you know how to code

i didn't, and i'm not gonna send that comment till i check the code and it's totally the same as i did before
image

@Allvaa

Allvaa commented Apr 21, 2021

Copy link
Copy Markdown

imagine copying code and turns it into a package without giving any credit to the original writer

imagine not seeing the npm package :)

huh?

@AngeloCore

Copy link
Copy Markdown
Author

This is basic code...
You are not god lmao

@tovade

tovade commented Apr 21, 2021

Copy link
Copy Markdown

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

Allvaa commented Apr 21, 2021

Copy link
Copy Markdown

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

@Allvaa

Allvaa commented Apr 21, 2021

Copy link
Copy Markdown

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

tovade commented Apr 21, 2021

Copy link
Copy Markdown

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

@AngeloCore

Copy link
Copy Markdown
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

Allvaa commented Apr 21, 2021

Copy link
Copy Markdown

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

Allvaa commented Apr 21, 2021

Copy link
Copy Markdown

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

tovade commented Apr 21, 2021

Copy link
Copy Markdown

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

@Allvaa

Allvaa commented Apr 21, 2021

Copy link
Copy Markdown

the package contains the code smh

@Allvaa

Allvaa commented Apr 21, 2021

Copy link
Copy Markdown

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

@tovade

tovade commented Apr 21, 2021

Copy link
Copy Markdown

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

@tovade

tovade commented Apr 21, 2021

Copy link
Copy Markdown

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

@Allvaa

Allvaa commented Apr 21, 2021

Copy link
Copy Markdown

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

tovade commented Apr 21, 2021

Copy link
Copy Markdown

are u stupid?

@AngeloCore

Copy link
Copy Markdown
Author

We won't deal with the kids

@AngeloCore

Copy link
Copy Markdown
Author

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

@Allvaa

Allvaa commented Apr 21, 2021

Copy link
Copy Markdown

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

@Allvaa

Allvaa commented Apr 21, 2021

Copy link
Copy Markdown

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

Allvaa commented Apr 21, 2021

Copy link
Copy Markdown

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