Explorar o código

get channel id instead of whole channel

Kylie Jo Swistak %!s(int64=5) %!d(string=hai) anos
pai
achega
5d85caedee
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      bot.rb

+ 1 - 1
bot.rb

@@ -969,7 +969,7 @@ bot.reaction_add do |event|
   reactions = event.message.reactions
   app = event.message.embeds.first
   carousel = Carousel.find_by(message_id: event.message.id)
-  team_chat = Team.find_by(channel: event.message.channel)
+  team_chat = Team.find_by(channel: event.message.channel.id)
   maj = 100
 
   form =