createDMChannel 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 */
DMChannel dmChannel = EntityUtility.createDMChannel(bot, rawJson);
}
Implementation
static DMChannel createDMChannel(INyxx client, RawApiMap rawJson) =>
DMChannel._new(client, rawJson);