enableEvents

fun Intents.Builder.enableEvents(vararg events: KClass<out Event>)(source)

Adds the necessary Intents to receive the specified types of events in all variations and with all data available.

E.g. MessageCreateEvent will add the GuildMessages, DirectMessages and MessageContent intents to receive messages in Guilds and DMs with the full content.

Note that enabling one type of event might also enable several other types of events since most Intents enable more than one event.