Sticker class

Annotations
  • @JsonSerializable(includeIfNull: false)

Constructors

Sticker({required String id, String? packId, required String name, String? description, String? tags, StickerType? type, required StickerFormatType formatType, bool? available, String? guildId, User? user, int? sortValue})
Constructor
Sticker.fromJson(Map<String, dynamic> json)
From json
factory

Properties

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 StickerFormatType
type of sticker format
final
guildId String?
id of the guild that owns this sticker
final
hashCode int
The hash code for this object.
no setterinherited
id String
id of the sticker
final
name String
name of the sticker
final
packId String?
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
tags String?
autocomplete/suggestion tags for the sticker (max 200 characters)
final
type StickerType?
type of sticker
final
user User?
the user that uploaded the guild sticker
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
To json
toString() String
A string representation of this object.
inherited

Operators

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