Skip to content

Conversation

YordiGamex
Copy link
Contributor

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:

  • Bug fix (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

  • My code follows the style guidelines of this project
  • Any dependent changes have been merged and published in downstream modules

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]
Copy link
Member

@Faf4a Faf4a left a 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!

Comment on lines +28 to +31
if (!referencedMessage) {
data.result = "Referenced message not found";
return { code: d.util.setCode(data) };
}
Copy link
Member

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) };
Copy link
Member

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!

Comment on lines +22 to +24
if (!referencedMessageID) {
data.result = "No hay referencia";
return { code: d.util.setCode(data) };
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this spanish

Comment on lines +10 to +13
if (!channel) {
data.result = "Canal no encontrado";
return { code: d.util.setCode(data) };
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this spanish

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also use aoierror

@Faf4a
Copy link
Member

Faf4a commented Jul 9, 2025

stale

@Faf4a Faf4a closed this Jul 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants