createGuildMember 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.createGuildMember(bot, Snowflake(''), rawJson);
}
Implementation
static Member createGuildMember(
INyxx client, Snowflake guildId, RawApiMap rawJson) =>
Member._new(client, rawJson, guildId);