Fix m->d poll questions over 45 characters
This commit is contained in:
@@ -55,10 +55,10 @@ async function* _interact({data, message, member, user}, {api}) {
|
|||||||
title: "Poll",
|
title: "Poll",
|
||||||
components: [{
|
components: [{
|
||||||
type: DiscordTypes.ComponentType.TextDisplay,
|
type: DiscordTypes.ComponentType.TextDisplay,
|
||||||
content: `-# ${pollComponents.getMultiSelectString(pollRow.max_selections, options.length)}`
|
content: `## ${pollRow.question_text}`
|
||||||
}, {
|
}, {
|
||||||
type: DiscordTypes.ComponentType.Label,
|
type: DiscordTypes.ComponentType.Label,
|
||||||
label: pollRow.question_text,
|
label: pollComponents.getMultiSelectString(pollRow.max_selections, options.length),
|
||||||
component: {
|
component: {
|
||||||
type: DiscordTypes.ComponentType.RadioGroup,
|
type: DiscordTypes.ComponentType.RadioGroup,
|
||||||
custom_id: "POLL_MODAL_SELECTION",
|
custom_id: "POLL_MODAL_SELECTION",
|
||||||
|
|||||||
Reference in New Issue
Block a user