Sha256: 0893a12417225ff8757b004a42f6cf8f7270ec1ed6c03ce042259a50e957e152

Contents?: true

Size: 431 Bytes

Versions: 2

Compression:

Stored size: 431 Bytes

Contents

#pragma once

#include <rice/rice.hpp>
#include "rdiscord_sdk.h"
#include "discord.h"
#include "common.h"

using namespace Rice;

extern Class rb_cUser;
void rb_user_init_class(Module module);

Object rb_user_initialize(Object self);

#define GET_USER(obj) \
if (!obj.is_a(rb_cUser)) { \
    rb_raise(rb_eTypeError, "User is not a Discord::User"); \
} \
discord::User* user = getPrivateData<discord::User>(obj);

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rdiscord_sdk-1.1.1 ext/rdiscord_sdk/user.h
rdiscord_sdk-1.1.0 ext/rdiscord_sdk/user.h