From f6e677744b6c428b7aab19fb04e0a2b01e73c96b Mon Sep 17 00:00:00 2001 From: y-bonfire Date: Fri, 29 Nov 2024 11:01:52 +0900 Subject: [PATCH] bugfix --- lib/discordrb/data/message.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/discordrb/data/message.rb b/lib/discordrb/data/message.rb index 7af0fef46..bfc2cd821 100644 --- a/lib/discordrb/data/message.rb +++ b/lib/discordrb/data/message.rb @@ -314,7 +314,7 @@ def reacted_with(reaction, limit: 100) get_reactions = proc do |fetch_limit, after_id = nil| resp = API::Channel.get_reactions(@bot.token, @channel.id, @id, reaction, nil, after_id, fetch_limit) - return JSON.parse(resp).map { |d| User.new(d, @bot) } + JSON.parse(resp).map { |d| User.new(d, @bot) } end # Can be done without pagination