create
inline fun JDAService.create(token: String, memberCachePolicy: MemberCachePolicy? = null, chunkingFilter: ChunkingFilter? = null, activity: Activity? = null, restConfig: RestConfig? = getDefaultRestConfig(), block: JDABuilder.() -> Unit = {}): JDA(source)
Creates a JDABuilder with caches inferred from intents.
In addition to the profile settings:
The event manager is set to the (optional) CoroutineEventManager
The intents are set to JDAService.intents.
In addition to the default-configured cache flags, JDAService.cacheFlags are added.
The REST Config is set to getDefaultRestConfig.
You must not change intents, cache flags nor event manager using the builder.
If you plan on growing your bot, prefer using createSharded instead.