edit method

Future<void> edit({
  1. String? nick = "",
  2. List<SnowflakeEntity>? roles,
  3. bool? mute,
  4. bool? deaf,
  5. Snowflake? channel = const Snowflake.zero(),
  6. String? auditReason,
})

Edits members. Allows to move user in voice channel, mute or deaf, change nick, roles.

Implementation

Future<void> edit({String? nick = "", List<SnowflakeEntity>? roles, bool? mute, bool? deaf, Snowflake? channel = const Snowflake.zero(), String? auditReason}) =>
    client.httpEndpoints.editGuildMember(this.guild.id, this.id, nick: nick, roles: roles, mute: mute, deaf: deaf, channel: channel, auditReason: auditReason);