fix(economy): remove deprecated flags from item editor messages
This commit is contained in:
@@ -56,7 +56,6 @@ export const command: CommandMessage = {
|
|||||||
|
|
||||||
const editorMsg = await message.channel.send({
|
const editorMsg = await message.channel.send({
|
||||||
content: `🛠️ Editor de Item: \`${key}\`\nUsa los botones para configurar los campos y luego guarda.`,
|
content: `🛠️ Editor de Item: \`${key}\`\nUsa los botones para configurar los campos y luego guarda.`,
|
||||||
flags: MessageFlags.IsComponentsV2,
|
|
||||||
components: [
|
components: [
|
||||||
{ type: 1, components: [
|
{ type: 1, components: [
|
||||||
{ type: 2, style: ButtonStyle.Primary, label: 'Base', custom_id: 'it_base' },
|
{ type: 2, style: ButtonStyle.Primary, label: 'Base', custom_id: 'it_base' },
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ export const command: CommandMessage = {
|
|||||||
|
|
||||||
const editorMsg = await message.channel.send({
|
const editorMsg = await message.channel.send({
|
||||||
content: `🛠️ Editor de Item (editar): \`${key}\``,
|
content: `🛠️ Editor de Item (editar): \`${key}\``,
|
||||||
flags: MessageFlags.IsComponentsV2,
|
|
||||||
components: [ { type: 1, components: [
|
components: [ { type: 1, components: [
|
||||||
{ type: 2, style: ButtonStyle.Primary, label: 'Base', custom_id: 'it_base' },
|
{ type: 2, style: ButtonStyle.Primary, label: 'Base', custom_id: 'it_base' },
|
||||||
{ type: 2, style: ButtonStyle.Secondary, label: 'Tags', custom_id: 'it_tags' },
|
{ type: 2, style: ButtonStyle.Secondary, label: 'Tags', custom_id: 'it_tags' },
|
||||||
@@ -141,4 +140,3 @@ async function showPropsModal(i: ButtonInteraction, state: ItemEditorState) {
|
|||||||
else { state.props = {}; await sub.reply({ content: 'ℹ️ Props limpiados.', flags: MessageFlags.Ephemeral }); }
|
else { state.props = {}; await sub.reply({ content: 'ℹ️ Props limpiados.', flags: MessageFlags.Ephemeral }); }
|
||||||
} catch {}
|
} catch {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user