Repository: discordjs/discord.js
File: packages/discord.js/src/structures/Message.js (JavaScript)

Code before:
'use strict';

const { Collection } = require('@discordjs/collection');
const { messageLink } = require('@discordjs/formatters');
const { DiscordSnowflake } = require('@sapphire/snowflake');
const {
  InteractionType,
  ChannelType,
  MessageType,
  MessageFlags,
  MessageReferenceType,
  PermissionFlagsBits,
} = require('discord-api-types/v10');
const { DiscordjsError, ErrorCodes } = require('../errors/index.js');
const { ReactionManager } = require('../managers/ReactionManager.js');
const { createComponent, findComponentByCustomId } = require('../util/Components.js');
const {
  NonSystemMessageTypes,
  MaxBulkDeletableMessageAge,
  UndeletableMessageTypes,
  VoiceBasedChannelTypes,
} = require('../util/Constants.js');
const { MessageFlagsBitField } = require('../util/MessageFlagsBitField.js');
const { PermissionsBitField } = require('../util/PermissionsBitField.js');
const { _transformAPIMessageInteractionMetadata } = require('../util/Transformers.js');
const { cleanContent, resolvePartialEmoji, transformResolved } = require('../util/Util.js');
const { Attachment } = require('./Attachment.js');
const { Base } = require('./Base.js');
const { ClientApplication } = require('./ClientApplication.js');
const { Embed } = require('./Embed.js');
const { InteractionCollector } = require('./InteractionCollector.js');
const { MessageMentions } = require('./MessageMentions.js');
const { MessagePayload } = require('./MessagePayload.js');
const { Poll } = require('./Poll.js');
const { ReactionCollector } = require('./ReactionCollector.js');
const { Sticker } = require('./Sticker.js');

/**
 * Represents a message on Discord.
 *
 * @extends {Base}
 */
class Message extends Base {
  constructor(client, data) {
    super(client);

    /**

Review comment (suggestion):
```suggestion
const { NonSystemMessageTypes, MaxBulkDeletableMessageAge, UndeletableMessageTypes } = require('../util/Constants.js');
```

Code after:
'use strict';

const { Collection } = require('@discordjs/collection');
const { messageLink } = require('@discordjs/formatters');
const { DiscordSnowflake } = require('@sapphire/snowflake');
const {
  InteractionType,
  ChannelType,
  MessageType,
  MessageFlags,
  MessageReferenceType,
  PermissionFlagsBits,
} = require('discord-api-types/v10');
const { DiscordjsError, ErrorCodes } = require('../errors/index.js');
const { ReactionManager } = require('../managers/ReactionManager.js');
const { createComponent, findComponentByCustomId } = require('../util/Components.js');
const { NonSystemMessageTypes, MaxBulkDeletableMessageAge, UndeletableMessageTypes } = require('../util/Constants.js');
const { MessageFlagsBitField } = require('../util/MessageFlagsBitField.js');
const { PermissionsBitField } = require('../util/PermissionsBitField.js');
const { _transformAPIMessageInteractionMetadata } = require('../util/Transformers.js');
const { cleanContent, resolvePartialEmoji, transformResolved } = require('../util/Util.js');
const { Attachment } = require('./Attachment.js');
const { Base } = require('./Base.js');
const { ClientApplication } = require('./ClientApplication.js');
const { Embed } = require('./Embed.js');
const { InteractionCollector } = require('./InteractionCollector.js');
const { MessageMentions } = require('./MessageMentions.js');
const { MessagePayload } = require('./MessagePayload.js');
const { Poll } = require('./Poll.js');
const { ReactionCollector } = require('./ReactionCollector.js');
const { Sticker } = require('./Sticker.js');

/**
 * Represents a message on Discord.
 *
 * @extends {Base}
 */
class Message extends Base {
  constructor(client, data) {
    super(client);

    /**
     * The id of the channel the message was sent in
     *
     * @type {Snowflake}
     */
    this.channelId = data.channel_id;