Skip to content
This repository has been archived by the owner on Feb 10, 2024. It is now read-only.

Mention modifiers #46

Closed
soumorse opened this issue Jul 16, 2017 · 16 comments
Closed

Mention modifiers #46

soumorse opened this issue Jul 16, 2017 · 16 comments
Assignees

Comments

@soumorse
Copy link

soumorse commented Jul 16, 2017

Hey, you could add mention modifiers
Example:
->custom new check @if{$(event.message.raw);equals;$(event.mention);User exists;User does not exist.}
In this example, it would be required to mention a real user If you want the command returns "User exists".
Adding this modifiers,we could create commands where It would be necessary to mention someone, not just write a random word or name.
You could make something like $(event.author),with status,game,avatar,id,discriminator,name and username.

@Kodehawa
Copy link
Member

@soumorse
Copy link
Author

I cant see it

@Kodehawa Kodehawa reopened this Jul 16, 2017
@Kodehawa
Copy link
Member

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

@NotJustAnna
Copy link
Contributor

NotJustAnna commented Jul 31, 2017

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

@NotJustAnna NotJustAnna assigned Kodehawa and unassigned NotJustAnna Jul 31, 2017
@tkatlavendier
Copy link

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 :(

@natanbc
Copy link
Member

natanbc commented Oct 12, 2017

$(event.message.raw)

@tkatlavendier
Copy link

OH THANK YOU!!!!!! <3

@MrLar
Copy link
Member

MrLar commented Oct 12, 2017

^ 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.

@Kodehawa
Copy link
Member

^ ™️

@Sanduhr32
Copy link

its easier than you expect :^)
Regex my friend

@Kodehawa
Copy link
Member

PR it

@Sekari
Copy link

Sekari commented Dec 10, 2017

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

@MrLar
Copy link
Member

MrLar commented Dec 10, 2017

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

@Sekari
Copy link

Sekari commented Dec 11, 2017

oh i see thanks

@MrLar
Copy link
Member

MrLar commented Dec 27, 2017

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

@MrLar MrLar closed this as completed Dec 27, 2017
@natanbc
Copy link
Member

natanbc commented Dec 27, 2017

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants