Skip to content

Commit

Permalink
fix: account for args in options
Browse files Browse the repository at this point in the history
  • Loading branch information
some1chan committed Aug 31, 2022
1 parent b059bcf commit 7cc325d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/core/src/structures/BaseDiscordMenuFlow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ export abstract class BaseDiscordMenuFlow extends BasePluginObject {

if (secondaryText) {
const args = secondaryText.split("_");
if (options?.args) {
args.push(...options?.args);
}

if (options?.pageNumber != undefined) {
args[0] = `${args[0]}.${options.pageNumber}`;
template += args.join("_");
Expand Down

0 comments on commit 7cc325d

Please sign in to comment.