Skip to content

How to run a command that includes "await" #2

@ele0001

Description

@ele0001

Soo.. this is the command runner I guess..

module.exports = {
	name: 'ping',
	description: 'Just a test command',
	aliases: [],
	guildOnly: false,
	args: false,
	usage: '',
	execute:(message, args, client) => {

Anyways, I have a command that has "await", when I run it in this handler, it says "await" is only valid in async function. I don't know how to turn execute: thing to async run. Please help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions