DiscReporter constructor

DiscReporter({
  1. required String webhook,
  2. required String content,
  3. String reportUserName = 'SReporter',
  4. String reportUserIcon = 'https://te.legra.ph/file/7735c9a6b574efcb10ae4.jpg',
  5. bool tts = false,
  6. required VoidCallback onSuccess,
  7. required dynamic onFaiure(
    1. String failMsg
    ),
})

Implementation

DiscReporter({
  required String webhook,
  required String content,
  String reportUserName = 'SReporter',
  String reportUserIcon =
      'https://te.legra.ph/file/7735c9a6b574efcb10ae4.jpg',
  bool tts = false,
  // List<DiscEmbed> embeds = const [],
  required VoidCallback onSuccess,
  required Function(String failMsg) onFaiure,
})  : _webhook = webhook,
      _content = content,
      _username = reportUserName,
      _avatarUrl = reportUserIcon,
      _tts = tts,
      _onSuccess = onSuccess,
      _onFailure = onFaiure;