revoltrb 0.0.2 → 0.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a423864396d60b962eebc129b294b03f79e812d9b95eb2511f7c4bb2f07cefc
4
- data.tar.gz: 142aba7edfce9961c36ff0ab2eaa70eced3e1a55ec64e2f2ae32db345fc30347
3
+ metadata.gz: 4a47d743074af0c8a29f14e720df6488e8db97c325c721e52fa5c110ffc2b8ba
4
+ data.tar.gz: cc98be2028dd30a7089fd1e0e5ee83fb62a518cac32812184cd6c8e0b6974fe0
5
5
  SHA512:
6
- metadata.gz: 1c9fb2983e8cba19aa607218619f5b1c7fc8bc712bba8a3030fb6e460060d60ed89a0493c35329668148542156f0591a5d2bbdf6ed0e1d1f5cd799b547293972
7
- data.tar.gz: 8bf120f58d994b0a9617844acbf0b86e0491b85965a228e50e6430ba5402c80ef1c0f22585e9d22558711f4b92255942ca0bca89db9411da924d7523cb4a43f7
6
+ metadata.gz: 014fbf6c33d831f9b7804299454e57017aa684fe84184a8ddbd21711cac2771ca0ef537592bb113d27e2870e9260c2c97eac00dd09d9fba9f579110dcfa69207
7
+ data.tar.gz: 718a3ad4ca444aa2ca55fd451190ae937e6fbff8f19f22aed7f935869085527279e0a9bb04736f437a9bf9752f7ac1005e21f61148906ed116cb9e1d9e87df80
data/README.md CHANGED
@@ -11,7 +11,6 @@ You need Ruby 3.0 or newer in order to use this package (Ruby 3.2 or newer is re
11
11
 
12
12
  This list contains a list of things that I know is broken and gotta fix. Contributing will be super helpful.
13
13
 
14
- - Fix obtaining server information
15
14
  - Fix reactions support
16
15
 
17
16
  ## Setup
@@ -20,7 +19,7 @@ You can install Revoltrb through several methods:
20
19
 
21
20
  #### Method 1: Install from rubygems.org (Bundler)
22
21
 
23
- Add the following to your Gemfile file and run the "bundle install" command:
22
+ Add the following to your Gemfile file and run the "[bundle install](https://rubygems.org/gems/revoltrb)" command:
24
23
 
25
24
  ```ruby
26
25
  gem 'discordrb'
@@ -105,6 +104,21 @@ ensure
105
104
  end
106
105
  ```
107
106
 
107
+ Webhook example:
108
+
109
+ ```ruby
110
+ require 'revoltrb'
111
+ # Webhook url should look like this: https://beta.revolt.chat/api/webhooks/<WEBHOOK_ID>/<WEBHOOK_TOKEN>
112
+ # Webhook urls can be obtained and created through beta.revolt.chat
113
+ WEBHOOK_ID = ''
114
+ WEBHOOK_TOKEN = ''
115
+ webhook = RevoltWebhooks::Webhook.new(WEBHOOK_ID, WEBHOOK_TOKEN)
116
+
117
+ webhook.send_message(
118
+ content: "Revoltrb webhook message content",
119
+ )
120
+ ```
121
+
108
122
  ## Support and Help
109
123
 
110
124
  If you need help with this ruby package (a.k.a. Gem), feel free to join the [Roxanne Studios Revolt Server](https://rvlt.gg/r4Ee2R1Z) and use the REVOLTRB category to talk about this package.