chore: Remove unnecessary comments from profile command, trade interaction handler, inventory service, and scheduler.
This commit is contained in:
@@ -31,10 +31,7 @@ KyokoClient.on(Events.MessageCreate, async message => {
|
||||
KyokoClient.on(Events.InteractionCreate, async interaction => {
|
||||
// Handle Trade Interactions
|
||||
if (interaction.isButton() || interaction.isStringSelectMenu() || interaction.isModalSubmit()) {
|
||||
if (interaction.customId.startsWith("trade_") || interaction.customId === "amount") { // "amount" is the text input id, usually interaction wrapper keeps customId of modal?
|
||||
// Wait, ModalSubmitInteraction customId IS likely 'trade_money_modal'.
|
||||
// The components INSIDE have IDs. The Interaction has the Modal ID.
|
||||
// So checking startWith("trade_") is correct for the modal itself.
|
||||
if (interaction.customId.startsWith("trade_") || interaction.customId === "amount") {
|
||||
await import("@/modules/trade/trade.interaction").then(m => m.handleTradeInteraction(interaction));
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user