GuildBuilder class
Allows to build guild object for creating new one or modifying existing
Constructors
-
GuildBuilder(String name, {Snowflake? afkChannelId, int? afkTimeout, List<
ChannelBuilder> ? channels, int? defaultMessageNotifications, int? explicitContentFilter, AttachmentBuilder? icon, List<RoleBuilder> ? roles, SystemChannelFlags? systemChannelFlags, Snowflake? systemChannelId, int? verificationLevel}) - Create new instance of GuildBuilder
Properties
- 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.
read-onlyinherited
- icon ↔ AttachmentBuilder?
-
The 128x128 icon for the guild
read / write
- name → String
-
Name of Guild
final
-
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.
read-onlyinherited
- 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
Methods
-
build(
) → RawApiMap -
Returns built response for api
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited