createMessage static method
Creates a Guild Member 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.createGuildMessage(bot, rawJson);
}
Implementation
static Message createMessage(
INyxx client, RawApiMap rawJson) =>
Message._deserialize(client, rawJson);