createCategoryGuildChannel static method

CategoryGuildChannel createCategoryGuildChannel(
  1. INyxx client,
  2. Snowflake guildId,
  3. RawApiMap rawJson
)

Creates a CategoryGuildChannel 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 */
    CategoryGuildChannel category = EntityUtility.createCategoryGuildChannel(bot, Snowflake("81384788765712384"), rawJson);
}

Implementation

static CategoryGuildChannel createCategoryGuildChannel(
        INyxx client, Snowflake guildId, RawApiMap rawJson) =>
    CategoryGuildChannel._new(client, rawJson, guildId);