StickerBuilder class Null safety

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)
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
name String
Name of the sticker (2-30 characters)
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
tags String
The Discord name of a unicode emoji representing the sticker's expression (2-200 characters)
read / write

Methods

build() RawApiMap
Returns built response for api
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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