Code Monkey home page Code Monkey logo

Comments (9)

Coocktail avatar Coocktail commented on August 12, 2024 2

Somewhat like that

from 1shot.

Coocktail avatar Coocktail commented on August 12, 2024

from 1shot.

FirezTheGreat avatar FirezTheGreat commented on August 12, 2024
let msg = await message.channel.send({ embed: yourhelpembed });
await msg.react('cut-paste-the-emoji-inside-a-string'); //do await msg.react() for every new emoji
const filter = (react, m) => m.id === ['cut-paste-all-the-emojis-the-bot-will-react'].includes(reaction.emoji.name) && message.author.id; //make sure the emojis are seperated with a comma as it is an array
const collector = msg.createReactionCollector(filter, {
time: 1000 //remove time option if you dont wanti it, give time in ms, look for other options on discord.js docs
});

collector.on('collect', async (reaction, user) => {
//do something
});

collector.on('end', async (collected) => {
//will only end if the time option has been given or if collector.stop() has been called
});

from 1shot.

FirezTheGreat avatar FirezTheGreat commented on August 12, 2024

i am on phone rn and will not be active for 2-3 days so you might get a delayed response from my side

from 1shot.

Coocktail avatar Coocktail commented on August 12, 2024

Umm

from 1shot.

Coocktail avatar Coocktail commented on August 12, 2024

Can i have the code please cuz what i tried didnt work

from 1shot.

Coocktail avatar Coocktail commented on August 12, 2024

Heres what umm i tried (Its way different than what u told plz help me)
https://pastebin.com/4epFtd8T

from 1shot.

FirezTheGreat avatar FirezTheGreat commented on August 12, 2024

i really cant understand anything from your code,

from 1shot.

Coocktail avatar Coocktail commented on August 12, 2024

Firez i fixed it but now i am getting a new error TypeError: Cannot read property 'channel' of undefined

from 1shot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.