Exemplo n.º 1
0
        internal static RpcWebhookUser Create(DiscordRpcClient discord, Model model, ulong webhookId)
        {
            var entity = new RpcWebhookUser(discord, model.Id, webhookId);

            entity.Update(model);
            return(entity);
        }
Exemplo n.º 2
0
        internal static RpcUser Create(DiscordRpcClient discord, Model model, ulong?webhookId)
        {
            RpcUser entity;

            if (webhookId.HasValue)
            {
                entity = new RpcWebhookUser(discord, model.Id, webhookId.Value);
            }
            else
            {
                entity = new RpcUser(discord, model.Id);
            }
            entity.Update(model);
            return(entity);
        }