emojiAvatar method
Future<DynamiteResponse<AvatarEmojiAvatarResponseApplicationJson, void> >
emojiAvatar({
- required String emoji,
- required String token,
- String? color,
- AvatarEmojiAvatarApiVersion? apiVersion,
- bool? oCSAPIRequest,
Set an emoji as avatar.
Returns a Future containing a DynamiteResponse with the status code, deserialized body and headers. Throws a DynamiteApiException if the API call does not return an expected status code.
Parameters:
emojiEmoji.colorColor of the emoji.apiVersionDefaults tov1.tokenoCSAPIRequestRequired to be true for the API request to pass. Defaults totrue.
Status codes:
- 200: Avatar set successfully
- 400: Setting emoji avatar is not possible
See:
- emojiAvatarRaw for an experimental operation that returns a DynamiteRawResponse that can be serialized.
Implementation
Future<DynamiteResponse<AvatarEmojiAvatarResponseApplicationJson, void>> emojiAvatar({
required String emoji,
required String token,
String? color,
AvatarEmojiAvatarApiVersion? apiVersion,
bool? oCSAPIRequest,
}) async {
final rawResponse = emojiAvatarRaw(
emoji: emoji,
token: token,
color: color,
apiVersion: apiVersion,
oCSAPIRequest: oCSAPIRequest,
);
return rawResponse.future;
}