Explorar el Código

get channel id instead of whole channel

Kylie Jo Swistak hace 5 años
padre
commit
5d85caedee
Se han modificado 1 ficheros con 1 adiciones y 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 =