allow method

void allow(
  1. {bool? reply,
  2. bool? everyone,
  3. bool? users,
  4. bool? roles}
)

Allow @everyone and @here if everyone is true Allow @user if users is true Allow @role if roles is true Mention the user on reply if reply is true

Implementation

void allow({bool? reply, bool? everyone, bool? users, bool? roles}) {
  if (everyone != null) {
    _allowEveryone = everyone;
  }

  if (users != null) {
    _allowUsers = users;
  }
  if (roles != null) {
    _allowRoles = roles;
  }

  if (reply != null) {
    _allowReply = reply;
  }
}