Update finalize event wordage
This commit is contained in:
parent
988f826545
commit
5c4fded76b
|
@ -87,19 +87,22 @@ export const deleteTokenEarly = async (bot: Bot, interaction: Interaction, guild
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const createEventBtnName = 'Create Event';
|
||||||
|
const createWhitelistedBtnName = 'Create Whitelisted Event';
|
||||||
|
const editEventDetailsBtnName = 'Edit Event Details';
|
||||||
const finalizeButtons = (idxPath: string): [ButtonComponent, ButtonComponent, ButtonComponent] => [{
|
const finalizeButtons = (idxPath: string): [ButtonComponent, ButtonComponent, ButtonComponent] => [{
|
||||||
type: MessageComponentTypes.Button,
|
type: MessageComponentTypes.Button,
|
||||||
label: 'Create Event',
|
label: createEventBtnName,
|
||||||
style: ButtonStyles.Success,
|
style: ButtonStyles.Success,
|
||||||
customId: createEventCustomId,
|
customId: createEventCustomId,
|
||||||
}, {
|
}, {
|
||||||
type: MessageComponentTypes.Button,
|
type: MessageComponentTypes.Button,
|
||||||
label: 'Create Whitelisted Event',
|
label: createWhitelistedBtnName,
|
||||||
style: ButtonStyles.Primary,
|
style: ButtonStyles.Primary,
|
||||||
customId: `${createEventCustomId}${idSeparator}`,
|
customId: `${createEventCustomId}${idSeparator}`,
|
||||||
}, {
|
}, {
|
||||||
type: MessageComponentTypes.Button,
|
type: MessageComponentTypes.Button,
|
||||||
label: 'Edit Event Details',
|
label: editEventDetailsBtnName,
|
||||||
style: ButtonStyles.Secondary,
|
style: ButtonStyles.Secondary,
|
||||||
customId: `${gameSelCustomId}${idSeparator}${idxPath}${pathIdxEnder}`,
|
customId: `${gameSelCustomId}${idSeparator}${idxPath}${pathIdxEnder}`,
|
||||||
}];
|
}];
|
||||||
|
@ -170,7 +173,11 @@ export const createLFGPost = (
|
||||||
type: InteractionResponseTypes.ChannelMessageWithSource,
|
type: InteractionResponseTypes.ChannelMessageWithSource,
|
||||||
data: {
|
data: {
|
||||||
flags: editing ? ApplicationCommandFlags.Ephemeral : undefined,
|
flags: editing ? ApplicationCommandFlags.Ephemeral : undefined,
|
||||||
content: editing ? `Please verify the information below, then click on the $name button below.\n\n${selfDestructMessage(new Date().getTime())}` : '',
|
content: editing
|
||||||
|
? `Please verify the information below, then click on the \`${createEventBtnName}\` or \`${createWhitelistedBtnName}\` button, or change the event \`Date/Time\` or \`Description\` with the ${editEventDetailsBtnName} button below. \n\n${
|
||||||
|
selfDestructMessage(new Date().getTime())
|
||||||
|
}`
|
||||||
|
: '',
|
||||||
embeds: [{
|
embeds: [{
|
||||||
color: successColor,
|
color: successColor,
|
||||||
fields: [{
|
fields: [{
|
||||||
|
|
Loading…
Reference in New Issue