discordrb 1.3.4 → 1.3.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of discordrb might be problematic. Click here for more details.

@@ -1,4 +1,5 @@
1
1
  module Discordrb
2
+ # List of permissions Discord uses
2
3
  class Permissions
3
4
  # This hash maps bit positions to logical permissions.
4
5
  # I'm not sure what the unlabeled bits are reserved for.
@@ -7,13 +8,13 @@ module Discordrb
7
8
  0 => :create_instant_invite, # 1
8
9
  1 => :kick_members, # 2
9
10
  2 => :ban_members, # 4
10
- 3 => :manage_roles , # 8
11
+ 3 => :manage_roles, # 8
11
12
  4 => :manage_channels, # 16
12
13
  5 => :manage_server, # 32
13
- #6 # 64
14
- #7 # 128
15
- #8 # 256
16
- #9 # 512
14
+ # 6 # 64
15
+ # 7 # 128
16
+ # 8 # 256
17
+ # 9 # 512
17
18
  10 => :read_messages, # 1024
18
19
  11 => :send_messages, # 2048
19
20
  12 => :send_tts_messages, # 4096
@@ -22,8 +23,8 @@ module Discordrb
22
23
  15 => :attach_files, # 32768
23
24
  16 => :read_message_history, # 65536
24
25
  17 => :mention_everyone, # 131072
25
- #18 # 262144
26
- #19 # 524288
26
+ # 18 # 262144
27
+ # 19 # 524288
27
28
  20 => :connect, # 1048576
28
29
  21 => :speak, # 2097152
29
30
  22 => :mute_members, # 4194304
@@ -31,11 +32,11 @@ module Discordrb
31
32
  24 => :move_members, # 16777216
32
33
  25 => :use_voice_activity # 33554432
33
34
  }
34
-
35
+
35
36
  Flags.each_value do |flag|
36
37
  attr_reader flag
37
38
  end
38
-
39
+
39
40
  def initialize(bits)
40
41
  Flags.each do |position, flag|
41
42
  flag_set = ((bits >> position) & 0x1) == 1
@@ -1,3 +1,4 @@
1
+ # Discordrb and all its functionality, in this case only the version.
1
2
  module Discordrb
2
- VERSION = "1.3.4"
3
+ VERSION = '1.3.5'
3
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: discordrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.4
4
+ version: 1.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - meew0
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-06 00:00:00.000000000 Z
11
+ date: 2015-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faye-websocket
@@ -88,6 +88,7 @@ extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
90
  - ".gitignore"
91
+ - ".rubocop.yml"
91
92
  - ".travis.yml"
92
93
  - Gemfile
93
94
  - LICENSE.txt
@@ -102,25 +103,26 @@ files:
102
103
  - lib/discordrb.rb
103
104
  - lib/discordrb/api.rb
104
105
  - lib/discordrb/bot.rb
105
- - lib/discordrb/commands/command-bot.rb
106
+ - lib/discordrb/commands/command_bot.rb
106
107
  - lib/discordrb/commands/events.rb
107
108
  - lib/discordrb/commands/parser.rb
108
109
  - lib/discordrb/data.rb
109
- - lib/discordrb/events/channel-create.rb
110
- - lib/discordrb/events/channel-delete.rb
111
- - lib/discordrb/events/channel-update.rb
110
+ - lib/discordrb/events/channel_create.rb
111
+ - lib/discordrb/events/channel_delete.rb
112
+ - lib/discordrb/events/channel_update.rb
112
113
  - lib/discordrb/events/generic.rb
113
- - lib/discordrb/events/guild-member-update.rb
114
- - lib/discordrb/events/guild-role-create.rb
115
- - lib/discordrb/events/guild-role-delete.rb
116
- - lib/discordrb/events/guild-role-update.rb
114
+ - lib/discordrb/events/guild_member_update.rb
115
+ - lib/discordrb/events/guild_role_create.rb
116
+ - lib/discordrb/events/guild_role_delete.rb
117
+ - lib/discordrb/events/guild_role_update.rb
117
118
  - lib/discordrb/events/lifetime.rb
118
119
  - lib/discordrb/events/message.rb
119
120
  - lib/discordrb/events/presence.rb
120
121
  - lib/discordrb/events/typing.rb
121
- - lib/discordrb/events/voice-state-update.rb
122
+ - lib/discordrb/events/voice_state_update.rb
122
123
  - lib/discordrb/exceptions.rb
123
124
  - lib/discordrb/games.rb
125
+ - lib/discordrb/games_list.rb
124
126
  - lib/discordrb/permissions.rb
125
127
  - lib/discordrb/version.rb
126
128
  homepage: https://github.com/meew0/discordrb