Skip to content

using message split ignores message options #4300

@Markus-Rost

Description

@Markus-Rost

When sending multiple messages using the message split option other options like allowedMentions are only added to the very last message send. This might result in uncontrolled role mentions or other issues.

var options = {
    split: { maxLength: 20 },
    allowedMentions: { parse: [] }
}

msg.channel.send( '<@12345>', options )
// '@mention' no notification

msg.channel.send( '<@12345>\n<@12345>\n<@12345>', options )
// '@mention' notification
// '@mention' notification
// '@mention' no notification

Further details:

  • discord.js version: 12.2.0
  • Node.js version: v12.13.0
  • Operating system: Windows 10
  • Priority this issue should have: medium, as it might result in uncontrolled role mentions.
  • I have also tested the issue on latest master, commit hash:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions