dbiorb 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/dbio/user.rb +11 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3565ccefb9e1eb0dc274b71be6fdeb2c454c70621911505e7f2d6fcbf5cb065b
|
|
4
|
+
data.tar.gz: 0b911b55c964887470ba13c8d232717a0b65b5408f00967aca1168f87217bb01
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cfeada1f447ce82cf783f9349c10e881549ed1e1c9aa5caabc15042c4237329f9bc1f7c016a1d22b7b4e35f32e08a648955d6e032670405d5d7e4bb6c30d03b7
|
|
7
|
+
data.tar.gz: f5c58be8e8f15664e2b0428e8827fc85ca15ff0a6555773058e54d9b6dea7b8c6833570b46c65e6d0b0c108a7cba28964c9c90e64ff9748bbfe13f60ac04a2e5
|
data/lib/dbio/user.rb
CHANGED
|
@@ -23,7 +23,7 @@ class DBio::User
|
|
|
23
23
|
# The link to this user's profile
|
|
24
24
|
# @return [String] this user's profile
|
|
25
25
|
def profile_url
|
|
26
|
-
"https://dsc.bio/#{
|
|
26
|
+
"https://dsc.bio/#{slug}"
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
# The id of the user.
|
|
@@ -51,7 +51,7 @@ class DBio::User
|
|
|
51
51
|
|
|
52
52
|
# @return [boolean] if this user is verified
|
|
53
53
|
def verified?
|
|
54
|
-
@user['verified']
|
|
54
|
+
@user['verified']
|
|
55
55
|
end
|
|
56
56
|
|
|
57
57
|
# @return [Time] The time this user was created
|
|
@@ -116,10 +116,18 @@ class DBio::User
|
|
|
116
116
|
@user['staff']
|
|
117
117
|
end
|
|
118
118
|
|
|
119
|
+
# The premium type as found on Discord.
|
|
120
|
+
# ezpz way to see if they're Nitro.
|
|
121
|
+
# For Types, see https://discord.com/developers/docs/resources/user#user-object-premium-types
|
|
122
|
+
# @return [Integer] this user's premium type
|
|
123
|
+
def premium_type
|
|
124
|
+
@user['premium_type']
|
|
125
|
+
end
|
|
126
|
+
|
|
119
127
|
# This is the user's Discord connections as they appear on their Discord profile
|
|
120
128
|
# @return [Array<DiscordConnection>] the user's discord connections
|
|
121
129
|
def discord_connections
|
|
122
|
-
@discord_connections.map{ |e| DBio::DiscordConnection.new(e) }
|
|
130
|
+
@discord_connections.map { |e| DBio::DiscordConnection.new(e) }
|
|
123
131
|
end
|
|
124
132
|
|
|
125
133
|
# The user's Discord.Bio connections. Not as specific.
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dbiorb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chew
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-07-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|