Browse Source

Fixes issue where ComponentBuilder wouldn't add more than one button to a new row

pull/1923/head
Z3RYX GitHub 4 years ago
parent
commit
84d011a1f6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Core/Entities/Interactions/Message Components/ComponentBuilder.cs

+ 1
- 1
src/Discord.Net.Core/Entities/Interactions/Message Components/ComponentBuilder.cs View File

@@ -90,7 +90,7 @@ namespace Discord
} }
else else
{ {
if (_actionRows.Count + 1 == row)
if (_actionRows.Count == row)
_actionRows.Add(new ActionRowBuilder().WithComponent(builtButton)); _actionRows.Add(new ActionRowBuilder().WithComponent(builtButton));
else else
{ {


Loading…
Cancel
Save