Surround confessions in quotes

This commit is contained in:
powermaker450 2024-10-13 15:47:16 -04:00
parent f4cc93b07d
commit b25beeee98
2 changed files with 2 additions and 3 deletions

View file

@ -74,7 +74,7 @@ export async function execute(interaction: CommandInteraction) {
const adminChannel = dt.getGuildInfo(interaction.guild?.id!)?.settings const adminChannel = dt.getGuildInfo(interaction.guild?.id!)?.settings
.modChannel; .modChannel;
// @ts-ignore // @ts-ignore
const messageContent: string = interaction.options.getString("message"); const messageContent: string = `"${interaction.options.getString("message")}"`;
// @ts-ignore // @ts-ignore
const attachment: string = interaction.options.getString("attachment"); const attachment: string = interaction.options.getString("attachment");

View file

@ -86,8 +86,7 @@ BotClient.on(Events.InteractionCreate, async interaction => {
} }
if (interaction.customId === "submitConfession") { if (interaction.customId === "submitConfession") {
const messageContent: string = const messageContent: string = `"${interaction.fields.getTextInputValue("confessionInput")}"`;
interaction.fields.getTextInputValue("confessionInput");
const attachment: string = interaction.fields.getTextInputValue( const attachment: string = interaction.fields.getTextInputValue(
"confessionAttachment" "confessionAttachment"
); );