GuildBuilder class Null safety

Allows to build guild object for creating new one or modifying existing



GuildBuilder(String name)
Create new instance of GuildBuilder


afkChannelId Snowflake?
The channel id to use for the afk channel The id provided sould be the same of a given id in channels.
read / write
afkTimeout int?
The afk timeout in seconds
read / write
channels List<ChannelBuilder>?
List of channel to create at guild creation When using this field, the position field of the channel is ignored. And none of the default channels are created.
read / write
defaultMessageNotifications int?
Default message notification level
read / write
explicitContentFilter int?
Explicit content filter level
read / write
hashCode int
The hash code for this object.
icon AttachmentBuilder?
The 128x128 icon for the guild
read / write
name String
Name of Guild
region String?
Voice region id
read / write
roles List<RoleBuilder>?
List of roles to create at guild creation. When using this parameter, the first member of the list is the @everyone role - So all the permissions that you give to this role will be applied to all the members of the guild.
read / write
runtimeType Type
A representation of the runtime type of the object.
systemChannelFlags SystemChannelFlags?
The SystemChannelFlags to apply
read / write
systemChannelId Snowflake?
The id of the system channel The id provided sould be the same of a given id in channels.
read / write
verificationLevel int?
Verification level
read / write


build() RawApiMap
Returns built response for api
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.