topgg 1.0.4 → 1.0.5

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/topgg/bot.rb +24 -23
  3. data/topgg.gemspec +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fbdd8160537319a98455be19d2e3ad6d0691d6a3508d56dd6688f356879eb6c0
4
- data.tar.gz: 077e57202742fc1d871e35fcb2f91ec226d60b8b317d1d10964f17a8a9aa57e9
3
+ metadata.gz: f7df2047fafadab0512acb6dea7eaf26340c7287d0b6be8b4a194e2a3876b676
4
+ data.tar.gz: af78cad719c0a3a58b36800fb045ce53fd28dbfc31095ba8f7d29caccab80716
5
5
  SHA512:
6
- metadata.gz: b9e65d4ff9ab1b84d6300a3fea75e941de62496a7cbb1d3030773e1427cd2c77359a1ed141a14aa7b65bed93e12e2b774abc3f629146e9fe0b4737eb4d745c95
7
- data.tar.gz: ea5d810c1e3a57b781fbefd4f83085484d01f454346135852c5906f0b1984eda9bc9766c958e43ea57be4786998f093094775cb2eb87cbca8a91ebbca2336f14
6
+ metadata.gz: 60061b954b40cf38adc64eda4fceb34682a62c511041bbd01090a911215c6df63316be05a7008f75231bd0f7a3f12fc4f47794142e69668e9679e1cedfd1e1f3
7
+ data.tar.gz: 36c8e67ceebae7723932f9b43972ce8647c3d0d346e0e9e8ff22185ddd7f89d1b9d2f90cd8d62a91f15cfa59086c0ab5d124726288c050ce56a06950a8c83e2b
data/lib/topgg/bot.rb CHANGED
@@ -10,28 +10,29 @@ module Spreader
10
10
  # @return [Hash]
11
11
  attr_reader :obj
12
12
 
13
+ alias :raw :obj
13
14
  # Returns error message, if there's an error
14
15
  # @return [String]
15
16
  def error
16
- @obj['error']
17
+ @obj['error'].to_str
17
18
  end
18
19
 
19
20
  # Returns the default Avatar of the client
20
21
  # @return [String]
21
22
  def defAvatar
22
- @obj['defAvatar']
23
+ @obj['defAvatar'].to_str
23
24
  end
24
25
 
25
26
  # Returns the invite link of the bot
26
27
  # @return [String]
27
28
  def invite
28
- @obj['invite']
29
+ @obj['invite'].to_str
29
30
  end
30
31
 
31
32
  # Returns the bot website, if configured
32
33
  # @return [String]
33
34
  def website
34
- @obj['website']
35
+ @obj['website'].to_str
35
36
  end
36
37
 
37
38
  # Returns support server link
@@ -43,37 +44,37 @@ module Spreader
43
44
  # Returns github repository link, if any
44
45
  # @return [String]
45
46
  def github
46
- @obj['github']
47
+ @obj['github'].to_str
47
48
  end
48
49
 
49
50
  # Returns the long Description of the bot
50
51
  # @return [String]
51
52
  def longdesc
52
- @obj['longdesc']
53
+ @obj['longdesc'].to_str
53
54
  end
54
55
 
55
56
  # Returns the short description of the bot
56
57
  # @return [String]
57
58
  def shortdesc
58
- @obj['shortdesc']
59
+ @obj['shortdesc'].to_str
59
60
  end
60
61
 
61
62
  # Returns the default prefix of the bot
62
63
  # @return [String]
63
64
  def prefix
64
- @obj['prefix']
65
+ @obj['prefix'].to_str
65
66
  end
66
67
 
67
68
  # Returns the bot library
68
69
  # @return [String]
69
70
  def lib
70
- @obj['lib']
71
+ @obj['lib'].to_str
71
72
  end
72
73
 
73
74
  # Returns the bot client id
74
75
  # @return [String]
75
76
  def clientid
76
- @obj['clientid']
77
+ @obj['clientid'].to_str
77
78
  end
78
79
 
79
80
  # Returns the avatar link of the bot
@@ -85,19 +86,19 @@ module Spreader
85
86
  # Returns the bot id
86
87
  # @return [String]
87
88
  def id
88
- @obj['id']
89
+ @obj['id'].to_str
89
90
  end
90
91
 
91
92
  # Returns the bot descriminator
92
93
  # @return [String]
93
94
  def descriminator
94
- @obj['descriminator']
95
+ @obj['descriminator'].to_str
95
96
  end
96
97
 
97
98
  # Returns the bot username
98
99
  # @return [String]
99
100
  def username
100
- @obj['username']
101
+ @obj['username'].to_str
101
102
  end
102
103
 
103
104
  # Returns the date on which the bot was submitted
@@ -115,61 +116,61 @@ module Spreader
115
116
  # Returns the amount of shards
116
117
  # @return [String]
117
118
  def shard_count
118
- @obj['shard_count']
119
+ @obj['shard_count'].to_str
119
120
  end
120
121
 
121
122
  # Returns configured guilds in which the bot is in
122
123
  # @return [String]
123
124
  def guilds
124
- @obj['guilds']
125
+ @obj['guilds'].to_str
125
126
  end
126
127
 
127
128
  # Returns the amount of guilds per shard of the bot
128
129
  # @return [String]
129
130
  def shards
130
- @obj['shards']
131
+ @obj['shards'].to_str
131
132
  end
132
133
 
133
134
  # Returns the monthyPoints of the bot
134
135
  # @return [String]
135
136
  def monthlyPoints
136
- @obj['monthlyPoints']
137
+ @obj['monthlyPoints'].to_str
137
138
  end
138
139
 
139
140
  # Returns the total points of the bot
140
141
  # @return [String]
141
142
  def points
142
- @obj['points']
143
+ @obj['points'].to_str
143
144
  end
144
145
 
145
146
  # Returns true/false depending on if the bot is certified or not
146
147
  # @return [Boolean]
147
148
  def certifiedBot
148
- @obj['certifiedBot']
149
+ @obj['certifiedBot'].to_str
149
150
  end
150
151
 
151
152
  # Returns the owner ids
152
153
  # @return [Array<String>]
153
154
  def owners
154
- @obj['owners']
155
+ @obj['owners'].to_str
155
156
  end
156
157
 
157
158
  # Return the bot tags
158
159
  # @return [Array<String>]
159
160
  def tags
160
- @obj['tags']
161
+ @obj['tags'].to_str
161
162
  end
162
163
 
163
164
  # Returns the bot banner url
164
165
  # @return [String]
165
166
  def bannerUrl
166
- @obj['bannerUrl']
167
+ @obj['bannerUrl'].to_str
167
168
  end
168
169
 
169
170
  # Returns the donate bot guild ID
170
171
  # @return [String]
171
172
  def donatebotguildid
172
- @obj['donatebotguildid']
173
+ @obj['donatebotguildid'].to_str
173
174
  end
174
175
  end
175
176
  end
data/topgg.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'topgg'
5
- spec.version = '1.0.4'
5
+ spec.version = '1.0.5'
6
6
  spec.authors = ['Adonis Tremblay']
7
7
  spec.email = ['rhydderchc@gmail.com']
8
8
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: topgg
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adonis Tremblay