setName method

Future<void> setName(
  1. String name
)

Modifies the name of this.

Example :

await guild.setName('Guild name');

Implementation

Future<void> setName (String name) async {
  Response response = await ioc.use<HttpService>().patch(url: "/guilds/$id", payload: { 'name': name });

  if (response.statusCode == 200) {
    _name = name;
  }
}