DiscordSticker class
Represents a sticker that can be sent in messages.
Constructors
- DiscordSticker({required DiscordSnowflake id, DiscordSnowflake? packId, required String name, String? description, required String tags, required String asset, required int type, required int formatType, bool? available, DiscordSnowflake? guildId, DiscordUser? user, int? sortValue})
-
DiscordSticker.fromJson(Map<
String, dynamic> json) -
factory
Properties
- asset → String
-
Deprecated previously the sticker asset hash, now an empty string
final
- available → bool?
-
whether this guild sticker can be used, may be false due to loss of Server Boosts
final
- description → String?
-
description of the sticker
final
- formatType → int
-
type of sticker format
final
- formatTypeAsEnum → DiscordStickerFormatType
-
no setter
- guildId → DiscordSnowflake?
-
id of the guild that owns this sticker
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → DiscordSnowflake
-
id of the sticker
final
- name → String
-
name of the sticker
final
- packId → DiscordSnowflake?
-
for standard stickers, id of the pack the sticker is from
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sortValue → int?
-
the standard sticker's sort order within its pack
final
-
autocomplete/suggestion tags for the sticker (max 200 characters)
final
- type → int
-
type of sticker
final
- typeAsEnum → DiscordStickerType
-
no setter
- user → DiscordUser?
-
the user that uploaded this guild sticker*
final
Methods
-
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
Constants
- assetEntry → const String
- availableEntry → const String
- descriptionEntry → const String
- formatTypeEntry → const String
- guildIdEntry → const String
- idEntry → const String
- nameEntry → const String
- packIdEntry → const String
- sortValueEntry → const String
- typeEntry → const String
- userEntry → const String