setAllowedRoles method

Future<void> setAllowedRoles(
  1. List<Snowflake> roles, {
  2. String? reason,
})

Implementation

Future<void> setAllowedRoles (List<Snowflake> roles, { String? reason }) async {
  await ioc.use<DiscordApiHttpService>().patch(url: "/guilds/${manager.guild.id}/emojis/$id")
    .payload({ 'name': label })
    .auditLog(reason)
    .build();
}