Skip to content

Commit

Permalink
fix(Webhooks): Convert allowed_mentions to hash before execute (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
swarley authored Sep 17, 2021
2 parents ebf5721 + edd8f72 commit 7956821
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/discordrb/webhooks/builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def to_json_hash
avatar_url: @avatar_url,
tts: @tts,
embeds: @embeds.map(&:to_hash),
allowed_mentions: @allowed_mentions
allowed_mentions: @allowed_mentions&.to_hash
}
end

Expand All @@ -95,7 +95,7 @@ def to_multipart_hash
avatar_url: @avatar_url,
tts: @tts,
file: @file,
allowed_mentions: @allowed_mentions
allowed_mentions: @allowed_mentions&.to_hash
}
end
end
Expand Down

0 comments on commit 7956821

Please sign in to comment.