MessageContent

MessageContent is a unique privileged intent that isn't directly associated with any Gateway events. Instead, access to MessageContent permits your app to receive message content data across the APIs.

For example, the content, embeds, attachments, and components fields in message objects all contain message content and therefore require this intent.

Apps without this intent will receive empty values in fields that contain user-inputted content with a few exceptions:

  • Content in messages that an app sends

  • Content in DMs with the app

  • Content in which the app is mentioned

  • Content of the message a message context menu command is used on

Properties

Link copied to clipboard

The raw code used by Discord.

Link copied to clipboard
val shift: Int

The position of the bit that is set in this Intent. This is always >= 0.

Functions

Link copied to clipboard
operator override fun equals(other: Any?): Boolean
Link copied to clipboard
override fun hashCode(): Int
Link copied to clipboard
operator fun plus(flag: Intent): Intents

Returns an instance of Intents that has all bits set that are set in this and flag.

operator fun plus(flags: Intents): Intents

Returns an instance of Intents that has all bits set that are set in this and flags.

Link copied to clipboard
override fun toString(): String