Skip to content

Commit

Permalink
ternerary assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Droid00000 committed Jan 15, 2025
1 parent 5b086cb commit 034db39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/discordrb/data/message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def initialize(data, bot)

@flags = data['flags'] || 0

@thread = Channel.new(data['thread'], @bot, @server) if data['thread']
@thread = data['thread'] ? Channel.new(data['thread'], @bot, @server) : nil
end

# Replies to this message with the specified content.
Expand Down

0 comments on commit 034db39

Please sign in to comment.