parseWebhookAuthor method

WebhookAuthor parseWebhookAuthor(
  1. Map<String, Object?> raw
)

Parse a WebhookAuthor from raw.

Implementation

WebhookAuthor parseWebhookAuthor(Map<String, Object?> raw) {
  return WebhookAuthor(
    id: Snowflake.parse(raw['id']!),
    manager: this,
    avatarHash: raw['avatar'] as String?,
    username: raw['username'] as String,
  );
}