Coder Social home page Coder Social logo

Mention modifiers about mantarobot HOT 16 CLOSED

mantaro avatar mantaro commented on May 31, 2024
Mention modifiers

from mantarobot.

Comments (16)

Kodehawa avatar Kodehawa commented on May 31, 2024

That exists...
https://github.com/Mantaro/MantaroBot/wiki/Custom-Command-Modifiers

from mantarobot.

MorseGuy avatar MorseGuy commented on May 31, 2024

I cant see it

from mantarobot.

Kodehawa avatar Kodehawa commented on May 31, 2024

You mean, to get the person who gets mentioned in the message?
If that's what you mean, sure, will be added soon

from mantarobot.

annathelibri avatar annathelibri commented on May 31, 2024

Already fixed in the stable branch. Now @Kodehawa needs to start USING stable.

from mantarobot.

tkatlavendier avatar tkatlavendier commented on May 31, 2024

Hi, I am having trouble figuring out how to mention someone else when I make a new command? I am trying to make a custom command that will mention both the person who initiated the command and the person that they tagged. For example; ~>pizza = Lavendier (author) shares a piece of pizza with Hubby (mentioned user) I have tried many different things such as (event.user.mention) but cannot get anywhere. Help :(

from mantarobot.

natanbc avatar natanbc commented on May 31, 2024

$(event.message.raw)

from mantarobot.

tkatlavendier avatar tkatlavendier commented on May 31, 2024

OH THANK YOU!!!!!! <3

from mantarobot.

MrLar avatar MrLar commented on May 31, 2024

^ There is not direct modifier for fetching mentions. Fetching the message is the closest you'll get simply use what natan said and tag the person while running the command and it'll print it. It will also print everything else after the command name and prefix tho. To check all modifiers be sure to head to the top of the page and click wiki you'll find a documentation of every single one there.

from mantarobot.

Kodehawa avatar Kodehawa commented on May 31, 2024

^ ™️

from mantarobot.

Sanduhr32 avatar Sanduhr32 commented on May 31, 2024

its easier than you expect :^)
Regex my friend

from mantarobot.

Kodehawa avatar Kodehawa commented on May 31, 2024

PR it

from mantarobot.

Sekari avatar Sekari commented on May 31, 2024

So I'm not sure if its an issue with what i wrote or not but when i use $(event.author) in the title of the embedded commands, it prints as <@!____> where ____ is a really long number which I'm assuming is my ID. it doesn't happen for anywhere other than the title though.

also, will we ever get an rng function? o: hehe

from mantarobot.

MrLar avatar MrLar commented on May 31, 2024

Embed titles do not support mention resolving this is a Discord limitation.

from mantarobot.

Sekari avatar Sekari commented on May 31, 2024

oh i see thanks

from mantarobot.

MrLar avatar MrLar commented on May 31, 2024

Mention modifiers will be a thing in Mantaro Version 4.9 as part of the Custom Command rewrite, therefore i'm closing this.

from mantarobot.

natanbc avatar natanbc commented on May 31, 2024

Will only be available in a new type of custom commands btw

from mantarobot.

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.