createTextGuildChannel static method

TextGuildChannel createTextGuildChannel(
  1. INyxx client,
  2. Snowflake guildId,
  3. RawApiMap rawJson
)

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 */
    TextGuildChannel textChannel = EntityUtility.createTextGuildChannel(bot, Snowflake("81384788765712384"), rawJson);
}

Implementation

static TextGuildChannel createTextGuildChannel(
        INyxx client, Snowflake guildId, RawApiMap rawJson) =>
    TextGuildChannel._new(client, rawJson, guildId);