lib_discord 1.0.0 → 1.0.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/README.md +4 -5
- data/lib/lib_discord/client.rb +3 -1
- data/lib/lib_discord/maps.rb +0 -1
- data/lib/lib_discord/permissions.rb +1 -2
- data/lib/lib_discord/urls.rb +7 -4
- data/lib/lib_discord/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c677b5a4584d13d77314c8c92f7edbeef2a1d95d09e0aa5e3b575d94a0c05c1
|
4
|
+
data.tar.gz: aec4498155ca2ee500e209d4110f3ee3082b86340f079e9e9ec9db606bb72c85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12e1ce987f5151afc5361a23be89fa56fb53f83409cab4fd2d1b39635eedecc573c89b41351caf13a477c22375d32b38f36d99f29d15f3ade3b7363641801997
|
7
|
+
data.tar.gz: 1d7ced417a81d559a71f14ba8295e025a760b449e5810fb352063dfcc8ed3df7690eecd29349ab3c62cbc24c8a3d28933825b5eec0838406362bcb4f99f09619
|
data/README.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
[mailing lists]: https://sr.ht/~komidore64/lib_discord/lists
|
6
6
|
[bug tracker]: https://todo.sr.ht/~komidore64/lib_discord
|
7
7
|
|
8
|
-
Straightforward Ruby-bindings
|
8
|
+
Straightforward Ruby-bindings for Discord's Web API
|
9
9
|
|
10
10
|
[project] -- [sources] -- [mailing lists] -- [bug tracker]
|
11
11
|
|
@@ -18,14 +18,13 @@ Straightforward Ruby-bindings to interact with Discord's Web API.
|
|
18
18
|
`lib_discord` requires an installed [Ruby runtime](https://www.ruby-lang.org/)
|
19
19
|
`>= 3.3`.
|
20
20
|
|
21
|
-
Install the gem and add it to your application's Gemfile
|
21
|
+
Install the gem and add it to your application's Gemfile:
|
22
22
|
|
23
23
|
```sh
|
24
24
|
bundle add lib_discord
|
25
25
|
```
|
26
26
|
|
27
|
-
If bundler is not being used to manage dependencies, install the gem
|
28
|
-
executing:
|
27
|
+
If bundler is not being used to manage dependencies, install the gem with:
|
29
28
|
|
30
29
|
```sh
|
31
30
|
gem install lib_discord
|
@@ -71,7 +70,7 @@ fmt = LibDiscord.formatter
|
|
71
70
|
fmt.user(12345678) # => "<@12345678>"
|
72
71
|
```
|
73
72
|
|
74
|
-
See [documentation](https://
|
73
|
+
See [documentation](https://rdoc.info/gems/lib_discord) for more details.
|
75
74
|
|
76
75
|
## Getting help
|
77
76
|
|
data/lib/lib_discord/client.rb
CHANGED
@@ -8,11 +8,13 @@ require "lib_discord/version"
|
|
8
8
|
|
9
9
|
module LibDiscord
|
10
10
|
##
|
11
|
+
# @!method self.client(auth = nil, user_agent: "LibDiscord (#{LibDiscord::PROJECT_URL}, #{LibDiscord.version})", logger: nil)
|
12
|
+
#
|
11
13
|
# @param (see Client#initialize)
|
12
14
|
# @return [Client]
|
13
15
|
#
|
14
16
|
# @see Client#initialize
|
15
|
-
def self.client(
|
17
|
+
def self.client(*, **) = Client.new(*, **)
|
16
18
|
|
17
19
|
##
|
18
20
|
# You will mainly be interacting with instances of this class when using
|
data/lib/lib_discord/maps.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module LibDiscord
|
4
|
-
# @api private
|
5
4
|
PERMISSIONS = {
|
6
5
|
CREATE_INSTANT_INVITE: 1 << 0,
|
7
6
|
KICK_MEMBERS: 1 << 1,
|
@@ -60,7 +59,7 @@ module LibDiscord
|
|
60
59
|
# numbers in your code when making requests to Discord and parsing Discord
|
61
60
|
# responses.
|
62
61
|
#
|
63
|
-
# @return [Hash
|
62
|
+
# @return [Hash]
|
64
63
|
#
|
65
64
|
# @example
|
66
65
|
# p = LibDiscord.permissions
|
data/lib/lib_discord/urls.rb
CHANGED
@@ -1,18 +1,21 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module LibDiscord
|
4
|
+
# @api private
|
5
|
+
BUG_TRACKER_URL = "https://todo.sr.ht/~komidore64/lib_discord"
|
6
|
+
|
4
7
|
# @api private
|
5
8
|
DISCORD_BASE_URL = "https://discord.com"
|
6
9
|
|
7
10
|
# @api private
|
8
|
-
|
11
|
+
DOCUMENTATION_URL = "https://rdoc.info/gems/lib_discord"
|
9
12
|
|
10
13
|
# @api private
|
11
|
-
|
14
|
+
MAILING_LIST_URL = "https://sr.ht/~komidore64/lib_discord/lists"
|
12
15
|
|
13
16
|
# @api private
|
14
|
-
|
17
|
+
PROJECT_URL = "https://sr.ht/~komidore64/lib_discord"
|
15
18
|
|
16
19
|
# @api private
|
17
|
-
|
20
|
+
SOURCE_URL = "https://git.sr.ht/~komidore64/lib_discord"
|
18
21
|
end
|
data/lib/lib_discord/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lib_discord
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Price
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-06-
|
10
|
+
date: 2025-06-06 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: logger
|
@@ -43,10 +43,11 @@ files:
|
|
43
43
|
licenses:
|
44
44
|
- AGPL-3.0-only
|
45
45
|
metadata:
|
46
|
-
rubygems_mfa_required: 'true'
|
47
46
|
bug_tracker_uri: https://todo.sr.ht/~komidore64/lib_discord
|
47
|
+
documentation_uri: https://rdoc.info/gems/lib_discord
|
48
48
|
homepage_uri: https://sr.ht/~komidore64/lib_discord
|
49
49
|
mailing_list_uri: https://sr.ht/~komidore64/lib_discord/lists
|
50
|
+
rubygems_mfa_required: 'true'
|
50
51
|
source_code_uri: https://git.sr.ht/~komidore64/lib_discord
|
51
52
|
rdoc_options: []
|
52
53
|
require_paths:
|
@@ -64,5 +65,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
64
65
|
requirements: []
|
65
66
|
rubygems_version: 3.6.2
|
66
67
|
specification_version: 4
|
67
|
-
summary: Straightforward Discord Web API
|
68
|
+
summary: Straightforward Ruby-bindings for Discord's Web API
|
68
69
|
test_files: []
|