Skip to content

Commit

Permalink
Merge pull request #229 from shardlab/fix/channel-delete
Browse files Browse the repository at this point in the history
Fix thread delete method call
  • Loading branch information
Daniel-Worrall authored Jun 27, 2023
2 parents 984826c + 06d2c64 commit aee6c83
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 aee6c83

Please sign in to comment.