createGuild static method
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);