createVoiceGuildChannel static method
Creates a VoiceGuildChannel 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 */
VoiceGuildChannel voiceChannel = EntityUtility.createVoiceGuildChannel(bot, Snowflake("81384788765712384"), rawJson);
}
Implementation
static VoiceGuildChannel createVoiceGuildChannel(
INyxx client, Snowflake guildId, RawApiMap rawJson) =>
VoiceGuildChannel._new(client, rawJson, guildId);