StickerBuilder class

Create a new sticker for the guild

Implemented types

Constructors

StickerBuilder.bytes(List<int> bytes, {required String name, required String description, required String tags})
Creates attachment from provided bytes
factory
StickerBuilder.file(File file, {required String name, required String description, required String tags})
Create attachment from specified file instance. Name will be automatically extracted from path if no name provided.
factory
StickerBuilder.path(String path, {required String name, required String description, required String tags})
Open file at path then read it's contents and prepare to send. Name will be automatically extracted from path if no name provided.
factory

Properties

description String
Description of the sticker (empty or 2-100 characters)
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
name String
Name of the sticker (2-30 characters)
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tags String
The Discord name of a unicode emoji representing the sticker's expression (2-200 characters)
getter/setter pair

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