Skip to content

Commit

Permalink
fixup: remove bad conditional in Invite initializer (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
swarley committed Jan 26, 2021
1 parent e17efe7 commit a68291a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/discordrb/data/invite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class Invite
def initialize(data, bot)
@bot = bot

@channel = if data['channel_id'] || bot.channel
@channel = if data['channel_id']
bot.channel(data['channel_id'])
else
InviteChannel.new(data['channel'], bot)
Expand Down

0 comments on commit a68291a

Please sign in to comment.