-
-
Notifications
You must be signed in to change notification settings - Fork 129
Update referenceUserId.js #725
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This way it's much better to use it, since you can get the ID of the user they're replying to no matter what the message is. Its usage is: $referenceUserId[$channelID?;$messageID]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! a few changes are needed before merging this though!
if (!referencedMessage) { | ||
data.result = "Referenced message not found"; | ||
return { code: d.util.setCode(data) }; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use aoiError instead!
|
||
data.result = referencedMessage.author.id; | ||
|
||
return { code: d.util.setCode(data) }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please format your code with prettier!
if (!referencedMessageID) { | ||
data.result = "No hay referencia"; | ||
return { code: d.util.setCode(data) }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this spanish
if (!channel) { | ||
data.result = "Canal no encontrado"; | ||
return { code: d.util.setCode(data) }; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this spanish
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also use aoierror
stale |
This way it's much better to use it, since you can get the ID of the user they're replying to no matter what the message is. Its usage is: $referenceUserId[$channelID?;$messageID]
Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue number / remove this line if no issue is to be referenced)
Type of change
Please check options that describe your Pull Request: