MessageEmbedField constructor

MessageEmbedField({
  1. required String name,
  2. required String value,
  3. bool inline = false,
})

Implementation

MessageEmbedField(
    {required this.name, required this.value, this.inline = false}) {
  expectOrThrow(name.length <= 256,
      message: 'Name must be 256 or fewer in length');
  expectOrThrow(value.length <= 1024,
      message: 'Value must be 1024 or fewer in length');
}