MessageEmbedAuthor.fromUser constructor

MessageEmbedAuthor.fromUser(
  1. User user
)

Creates a MessageEmbedAuthor field from a User

Implementation

factory MessageEmbedAuthor.fromUser(User user) {
  return MessageEmbedAuthor(name: user.username);
}