Making discord client object accessible in event files?

Get the client using .client on an object, an Interaction in this case

const command = interaction.client.commands.get(interaction.commandName)