createGuild static method

Guild createGuild(
  1. INyxx client,
  2. RawApiMap rawJson, [
  3. bool guildCreate = false
])

Creates a Guild object, can be used for other classes where you have correct rawJson data from the API.

void main() {
    var bot = Nyxx("TOKEN");
    RawApiMap rawJson = /* rawJson from the API */
    Guild guild = EntityUtility.createGuild(bot, rawJson);
}

Implementation

static Guild createGuild(INyxx client, RawApiMap rawJson, [bool guildCreate = false]) =>
    Guild._new(client, rawJson, guildCreate);