Skip to content

Commit

Permalink
Fix thread delete method call
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-Worrall committed Jun 27, 2023
1 parent 984826c commit 06d2c64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/discordrb/bot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1602,7 +1602,7 @@ def handle_dispatch(type, data)
event = ThreadUpdateEvent.new(data, self)
raise_event(event)
when :THREAD_DELETE
channel_delete(data)
delete_channel(data)
@thread_members.delete(data['id']&.resolve_id)

# raise ThreadDeleteEvent
Expand Down

0 comments on commit 06d2c64

Please sign in to comment.