#(Dumb question) obtaining client from event

4 messages · Page 1 of 1 (latest)

winged orchid
#

how would i get the client from a messagecreate event?

// ./events/logs/messageLog.js
const { getConfig } = require("../../util/configuration");
const embeds = require("../../util/embeds");
const discord = require("discord.js");

module.exports = {
  name: "messageCreate",
  once: true,
  async execute(msg) {
    // do something with the client here
  },
};
```am trying to have a thing that sends a message in a specific channel when any message is sent (kinda like a logs system)
(using the event handler thing in the guide)
cinder auroraBOT
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

winged orchid
#

oh LMAO i thought that returned the client of the message author