onyxcord 4.0.0.beta.4 → 4.0.0.beta.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '09cf48fcdfd2d25191929696baf6977189f2e2ea76a906c27891369cc4437515'
4
- data.tar.gz: a3b9167db09891f24ae25d2739d2fc4e5780d4a859051d1aabd4ea73ef1dfe44
3
+ metadata.gz: 8c1aef8e235629f3e51f37d82e63ef079cf50a6f88366cc2d97baa4db0db55a2
4
+ data.tar.gz: cf28816af87907143044fa3c58e8a0f1766270d6683da28cd172dc04d450cf45
5
5
  SHA512:
6
- metadata.gz: a2ac0e0364748300fda1f19e0a89814d24a155e73d7f46be7492c313659d30af60b98d7cccda8c95c8c690138df5c52c20ace1b6d9751205ba9aae8ecbde6220
7
- data.tar.gz: ab9d1ae9701a7adb1dc8d5e7820e12c0aba4edc28368a0c859b233cc84509e7b4521eba2bf0d1483bee90ed155f5494a4db67fb894e595ffe552f46401077f6c
6
+ metadata.gz: fa754a8ea4ef26e1a8dbd77d463df3b41f22b2265579ac9fb0c9f592abd96e39ead4c0bd39877be04c3f96749e0afcaf77420dcd25b3ffd579f9cafd0a564058
7
+ data.tar.gz: fc089a83c0bb67875b4252de1f841f1a170f661c7f2aef70a1efe7943e7b327b06c2747ec3692a62648e64b20eea02b50721722ca10ff42520d8bf15f70d61a3
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OnyxCord
4
- VERSION = '4.0.0.beta.4'
4
+ VERSION = '4.0.0.beta.5'
5
5
  end
@@ -143,6 +143,9 @@ module OnyxCord
143
143
 
144
144
  alias_method :message, :to_message
145
145
 
146
+ # Discord.js-compatible aliases
147
+ alias reply respond
148
+
146
149
  # @!visibility private
147
150
  def inspect
148
151
  "<Interaction::Message content=#{@content.inspect} embeds=#{@embeds.inspect} channel_id=#{@channel_id} server_id=#{@server_id} author=#{@author.inspect}>"
@@ -325,6 +325,16 @@ module OnyxCord
325
325
  alias delete_original delete_response
326
326
  alias followup send_message
327
327
 
328
+ # Discord.js-compatible aliases
329
+ alias reply respond
330
+ alias deferReply defer
331
+ alias editReply edit_response
332
+ alias deleteReply delete_response
333
+ alias followUp send_message
334
+ alias update update_message
335
+ alias deferUpdate defer_update
336
+ alias showModal show_modal
337
+
328
338
  # @param message [String, Integer, InteractionMessage, Message] The message created by this interaction to be edited.
329
339
  # @param content [String] The message content.
330
340
  # @param embeds [Array<Hash, Webhooks::Embed>] The embeds for the message.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onyxcord
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.beta.4
4
+ version: 4.0.0.beta.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gustavo Silva