Guild class Null safety

Constructors

Guild(Snowflake _id, String _name, Snowflake _ownerId, ImageFormater? _icon, String? _iconHash, ImageFormater? _splash, ImageFormater? _discoverySplash, int? _permissions, Snowflake? _afkChannelId, int _afkTimeout, bool _widgetEnabled, Snowflake? _widgetChannelId, VerificationLevel _verificationLevel, int _defaultMessageNotifications, int _explicitContentFilter, GuildRoleManager _roles, int _mfaLevel, Snowflake? _applicationId, Snowflake? _systemChannelId, int _systemChannelFlags, Snowflake? _rulesChannelId, int? _maxPresences, int _maxMembers, String? _vanityUrlCode, String? _description, ImageFormater? _banner, int _premiumTier, int _premiumSubscriptionCount, String _preferredLocale, Snowflake? _publicUpdatesChannelId, int _maxVideoChannelUsers, int? _approximateMemberCount, int? _approximatePresenceCount, WelcomeScreen? _welcomeScreen, int _nsfwLevel, StickerManager _stickers, bool _premiumProgressBarEnabled, MemberManager _members, ChannelManager _channels, EmojiManager _emojis, List<GuildFeature> _features, ModerationRuleManager _moderationRules, GuildWebhookManager _webhooks, GuildScheduledEventManager _scheduledEvents)
Guild.from({required EmojiManager emojiManager, required MemberManager memberManager, required GuildRoleManager roleManager, required ChannelManager channelManager, required ModerationRuleManager moderationRuleManager, required WebhookManager webhookManager, required GuildScheduledEventManager guildScheduledEventManager, required dynamic payload})
factory

Properties

afkChannel VoiceChannel?
read / write
afkChannelId Snowflake?
read-only
afkTimeout int
read-only
applicationId Snowflake?
read-only
approximateMemberCount int?
read-only
approximatePresenceCount int?
read-only
read-only
bots Map<Snowflake, GuildMember>
read-only
channels → ChannelManager
read-only
defaultMessageNotifications int
read-only
description String?
read-only
discoverySplash → ImageFormater?
read-only
emojis → EmojiManager
read-only
explicitContentFilter int
read-only
features List<GuildFeature>
read-only
hashCode int
The hash code for this object.
read-only, inherited
icon → ImageFormater?
read-only
iconHash String?
read-only
id Snowflake
read-only
maxMembers int
read-only
maxPresences int?
read-only
maxVideoChannelUsers int
read-only
members → MemberManager
read-only
mfaLevel int
read-only
moderationRules → ModerationRuleManager
read-only
name String
read-only
nsfwLevel int
read-only
owner GuildMember
read-only
permissions int?
read-only
preferredLocale String
read-only
premiumProgressBarEnabled bool
read-only
premiumSubscriptionCount int
read-only
premiumTier int
read-only
publicUpdatesChannel TextChannel?
read / write
publicUpdatesChannelId Snowflake?
read-only
roles → GuildRoleManager
read-only
rulesChannel TextChannel?
read / write
rulesChannelId Snowflake?
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
scheduledEvents → GuildScheduledEventManager
read-only
splash → ImageFormater?
read-only
stickers → StickerManager
read-only
systemChannel TextChannel?
read / write
systemChannelFlags int
read-only
systemChannelId Snowflake?
read-only
vanityUrlCode String?
read-only
verificationLevel → VerificationLevel
read-only
webhooks → GuildWebhookManager
read-only
welcomeScreen → WelcomeScreen?
read-only
widgetChannelId Snowflake?
read-only
widgetEnabled bool
read-only

Methods

leave() Future<void>
Remove the discord client of this
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
preview() Future<GuildPreview>
removeBanner() Future<void>
Remove the banner of this
removeDiscoverySplash() Future<void>
Remove the discovery splash banner of this
removeIcon() Future<void>
Remove the icon of this
removeSplash() Future<void>
Remove the splash banner of this
setAfkChannel(VoiceChannel channel) Future<void>
Update the afk channel
setBanner(String filename) Future<void>
Update the banner of this
setDiscoverySplash(String filename) Future<void>
Update the discovery splash banner of this
setExplicitContentFilter(int level) Future<void>
Defines the explicit content level of this
setIcon(String filename) Future<void>
Update the icon of this
setMessageNotification(int level) Future<void>
Defines the notification level of this
setName(String name) Future<void>
Modifies the name of this.
setOwner(GuildMember guildMember) Future<void>
Update the owner of this
setPreferredLocale(Locale locale) Future<void>
Update preferred language of this
setPublicUpdateChannel(TextChannel channel) Future<void>
Update public updates channel of this
setRulesChannel(TextChannel channel) Future<void>
Update rules channel of this
setSplash(String filename) Future<void>
Update the splash banner of this
setSystemChannel(TextChannel channel) Future<void>
Update system channel of this
setVerificationLevel(VerificationLevel level) Future<void>
Modifies the verificationLevel of the current Guild.
toString() String
A string representation of this object.
inherited

Operators

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