createTextGuildChannel 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 */
TextGuildChannel textChannel = EntityUtility.createTextGuildChannel(bot, Snowflake("81384788765712384"), rawJson);
}
Implementation
static TextGuildChannel createTextGuildChannel(
INyxx client, Snowflake guildId, RawApiMap rawJson) =>
TextGuildChannel._new(client, rawJson, guildId);