updateCurrentUser static method
Updates any values that were set in the packet, and returns the updated user
Fires a User Update gateway event
Implementation
static Future<User> updateCurrentUser(ModifyCurrentUserPacket mcup) async {
Dio dio = Dio(DiscordSessionSettings.getOptions);
var reply = await dio.patch(
"${DiscordEndpoints.BaseURL}${DiscordEndpoints.Users}${DiscordEndpoints.ME}",
data: mcup.encode());
return User.fromJson(reply.data as String);
}