GuildCreateBuilder

Constructors

Link copied to clipboard
constructor(name: String)

Functions

Link copied to clipboard
inline fun category(name: String, id: Snowflake = newUniqueSnowflake(), builder: CategoryCreateBuilder.() -> Unit): Snowflake
Link copied to clipboard
inline fun everyoneRole(builder: RoleCreateBuilder.() -> Unit)
Link copied to clipboard
inline fun forumChannel(name: String, id: Snowflake = newUniqueSnowflake(), builder: TextChannelCreateBuilder.() -> Unit): Snowflake
Link copied to clipboard
inline fun newsChannel(name: String, id: Snowflake = newUniqueSnowflake(), builder: NewsChannelCreateBuilder.() -> Unit): Snowflake
Link copied to clipboard
fun newUniqueSnowflake(): Snowflake

Generates a new unique Snowflake using the snowflakeGenerator.

Link copied to clipboard
inline fun role(id: Snowflake = newUniqueSnowflake(), builder: RoleCreateBuilder.() -> Unit): Snowflake
Link copied to clipboard
inline fun textChannel(name: String, id: Snowflake = newUniqueSnowflake(), builder: TextChannelCreateBuilder.() -> Unit): Snowflake
Link copied to clipboard
open override fun toRequest(): GuildCreateRequest

Properties

Link copied to clipboard
var afkChannelId: Snowflake?

The id of the afk channel, this channel can be configured by supplying a channel with the same id.

Link copied to clipboard

The afk timeout.

Link copied to clipboard
Link copied to clipboard
var defaultMessageNotificationLevel: DefaultMessageNotificationLevel?
Link copied to clipboard
Link copied to clipboard
var explicitContentFilter: ExplicitContentFilter?
Link copied to clipboard
var icon: Image?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Iterator that generates unique ids for roles and channels.

Link copied to clipboard
var systemChannelId: Snowflake?

The id of the channel to which system messages are sent, this channel can be configured by supplying a channel with the same id.

Link copied to clipboard
var verificationLevel: VerificationLevel?