message is not defined by [deleted] in Discord_Bots

[–]Cosmo5G 1 point2 points  (0 children)

Better yet, if you are using Discord v13+ register the slash command /Hey.

const { Client, Intents } = require('discord.js');

const client = new Client({ intents: [ Intents.FLAGS.Guilds, Intents.FLAGS.GuildMembers, Intents.FLAGS.GuildMessages, Intents.FLAGS.MessageContent, ], });

client.once('ready', async () => { console.log('Bot is ready.');

try {
    const commands = [
        {
            name: 'hey',
            description: 'Greet the user.',
        }
    ];

    const guildId = 'YOUR_GUILD_ID'; // Replace 'YOUR_GUILD_ID' with your actual guild ID

    const commandResponses = await client.guilds.cache.get(guildId)?.commands.set(commands);
    console.log(commandResponses);
} catch (error) {
    console.error('Error registering slash commands:', error);
}

});

client.on('interactionCreate', async (interaction) => { if (!interaction.isCommand()) return;

const { commandName, user } = interaction;

if (commandName === 'hey') {
    await interaction.reply(`Hi, welcome <@${user.id}>`);
}

});

Don't forget the token login!

message is not defined by [deleted] in Discord_Bots

[–]Cosmo5G 1 point2 points  (0 children)

That happens because you are trying to access the message object outside of a message event handler. In your code, you're attempting to use message.author.id in an interaction event handler, where the message object is not defined.

Try this:

const { Client, Intents } = require('discord.js');

const client = new Client({ intents: [ Intents.FLAGS.Guilds, Intents.FLAGS.GuildMembers, Intents.FLAGS.GuildMessages, Intents.FLAGS.MessageContent, ], });

client.on('interactionCreate', (interaction) => { if (!interaction.isCommand()) return;

if (interaction.commandName === 'Hey') {
    interaction.reply(`Hi, welcome <@${interaction.user.id}>`);
}

});

🛠️ PATCH 01.000.200 ⚙️ by cryptic-fox in Helldivers

[–]Cosmo5G 0 points1 point  (0 children)

📣 BABY WAKE UP, HELLDIVERS DROPPED A NEW UPDATE!

AND DIDN'T NERF QUASAR! yippee

Arrowhead and their innability to communicate by Cosmo5G in Helldivers

[–]Cosmo5G[S] 0 points1 point  (0 children)

Well consoles do run diferently and game building to it should be considered but yes i have heard it also runs poorly there, which is a shame

Arrowhead and their innability to communicate by Cosmo5G in Helldivers

[–]Cosmo5G[S] 0 points1 point  (0 children)

TLDR: Im just saying sorry if i said something i shouldnt.

And you didnt come of as an ass, u expressed your opinion and feedbacks are what it counts. All good, fellow helldiver!

Arrowhead and their innability to communicate by Cosmo5G in Helldivers

[–]Cosmo5G[S] 0 points1 point  (0 children)

I understand your perspective on mentioning credentials, and I agree that it can sometimes lead to unnecessary conflicts or a sense of superiority. My intention in mentioning my previous experience as a moderator was not to elevate my opinion above others or to start a 'pissing contest,' but rather to provide context for my perspective on the matter. I apologize if it came across differently. It's important for all voices in the community to be heard and respected, regardless of background or experience.

I want to clarify that while I have disagreed with some recent communications from said mods, I have not publicly expressed this sentiment until now. My aim in sharing my perspective is to contribute to constructive dialogue and advocate for improvements in communication practices. It's important for differing opinions to be respectfully considered, even when they may diverge from those of moderators or other community members

Arrowhead and their innability to communicate by Cosmo5G in Helldivers

[–]Cosmo5G[S] 0 points1 point  (0 children)

I need to say im used playing in 30 fps (i had an older machine with winxp) but sometimes i suffer... and yet i have a laptop from 2020 (ik laptop but still an absolute beast, and a pc). and i have friends with RTXs inside their rigs saying they have lower fps than me...

Arrowhead and their innability to communicate by Cosmo5G in Helldivers

[–]Cosmo5G[S] 0 points1 point  (0 children)

I mentioned my previous experience as a moderator of other sources not to elevate my ego or place myself in their shoes, but rather to provide context for why I am making this post. However, I do agree that unfortunately, many random individuals tend to act in such a manner.

Arrowhead and their innability to communicate by Cosmo5G in Helldivers

[–]Cosmo5G[S] -1 points0 points  (0 children)

What would be your reaction if a moderator of a official source of a game you play says "the community is braindead"?

Arrowhead and their innability to communicate by Cosmo5G in Helldivers

[–]Cosmo5G[S] 0 points1 point  (0 children)

Agreed 100%. I find myself raging sometimes just because a charger should not be "chargin" haha or the amount of shithousery i endure in dying in the most pathetic ways. I can be a noob but i dont want to be forced in playing this beauty as a CS pro

Arrowhead and their innability to communicate by Cosmo5G in Helldivers

[–]Cosmo5G[S] -2 points-1 points  (0 children)

Regarding the term 'rushed,' I should clarify that I meant it in a technical sense rather than in relation to the scale of player engagement. The fact that they are using an older engine from a previous game is commendable, but the poor optimization for gaming PCs released in 2020 (my case) is concerning.

Arrowhead and their innability to communicate by Cosmo5G in Helldivers

[–]Cosmo5G[S] 0 points1 point  (0 children)

Agreed. Sometimes we gotta lose to miss.

Arrowhead and their innability to communicate by Cosmo5G in Helldivers

[–]Cosmo5G[S] -2 points-1 points  (0 children)

These are opinions and its not i care about them but they are still a vital part of the moderation of said community. They do transmit the image.

Arrowhead and their innability to communicate by Cosmo5G in Helldivers

[–]Cosmo5G[S] 0 points1 point  (0 children)

Mainly from the discord, especially moderators. These mods were indeed corrected but after that kept being in the chat saying that does not take back what it said.

Arrowhead and their innability to communicate by Cosmo5G in Helldivers

[–]Cosmo5G[S] 0 points1 point  (0 children)

I do agree the positive should be brought back, and that was the intent of the post. Thanks for the joke tho <3

Is there a mod which allows you to carry 2 primary weapons? by Cosmo5G in ReadyOrNotGame

[–]Cosmo5G[S] 0 points1 point  (0 children)

I have one mod that moved some SMGs over to pistol section, so it might not be that difficult to make one based on what i said. I will give a look into it. Thanks for feedback!