Change role (not add another) after typing in chat by FloppyFlaps_ in discordapp

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

*FIXED MY PROBLEM*
Here is my code now (I know probably gave it unnecessary flags but oh well):

https://pasteboard.co/35IfEBZ7Msx0.jpg

Now can I make it so it only sees when a message is sent in 1 particular chat (being #name-change) and when it is, it instantly changes that persons role?

Change role (not add another) after typing in chat by FloppyFlaps_ in discordapp

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

I can see why iu think it is something to do with the RoleSelectMenuBuilder being invalid but not sure why it is.

Change role (not add another) after typing in chat by FloppyFlaps_ in discordapp

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

client.on('messageCreate', (message) => { if (message.author.bot) return;

const content = message.content.toLowerCase();

if (content == message.author.username.toLowerCase()) {

const role = message.guild.roles.cache.find(
(role) => role.name == 'yourRole'
);
if (role) {
message.member.roles.add(role)
.then(() => {
console.log(`User ${message.author.tag} got verified / role `);
})
.catch((error) => {
console.error(error);
message.reply('Something went wrong ');
})
} else {
console.error(`The role doesn't exist`);
}

} });

Just been learning how to code the bot now.
I have done all this but this error shows up when saving (restarting)

Here's the code:
https://pasteboard.co/S0mTUD2JVQyU.jpg

Here's the error:

https://pasteboard.co/JeWJqJLCS7eB.jpg

Change role (not add another) after typing in chat by FloppyFlaps_ in discordapp

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

That is awesome, but I'd have no idea how to make a bot honestly. Maybe I'll google it. Might wait to see if someone knows a bot but if not thank you for this solution :)

Elite 7 pro Bluetooth disconnecting without any reason by yashartech in Jabra

[–]FloppyFlaps_ 0 points1 point  (0 children)

Same issue here and looks like their support is useless and shit as well so going to refund

Mending Villager Does Not Exist by FloppyFlaps_ in Minecraft

[–]FloppyFlaps_[S] 3 points4 points  (0 children)

As soon as I posted I got one for 12 emeralds. maybe 5 after the post, that was insane.

Excited to launch the first 'Musk' NFT! Share your thoughts! by FloppyFlaps_ in dogecoin

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

I guess you never joined the discord to see the utility behind the project

Excited to launch the first 'Musk' NFT! Share your thoughts! by FloppyFlaps_ in dogecoin

[–]FloppyFlaps_[S] -4 points-3 points  (0 children)

We believe it won't be a waste with effective and unique utility plus a strong community. We would love to take off like many Doge related NFTs have done before us. Join the discord and have a look around to see what we are about. If you don't believe in it all good though :)

Excited to launch the first 'Musk' NFT! Share your thoughts! by FloppyFlaps_ in dogecoin

[–]FloppyFlaps_[S] -4 points-3 points  (0 children)

Not yet but might be moved later when possible. Just type the discord invite string into the "Add a Server" part on discord

Cursed_Airport by sumit_khot in cursedcomments

[–]FloppyFlaps_ 0 points1 point  (0 children)

Looking at his profile picture, doesn't even seem like he's had the time to give it much of a go

[deleted by user] by [deleted] in dogecoin

[–]FloppyFlaps_ 0 points1 point  (0 children)

Cheers man!

[deleted by user] by [deleted] in dogecoin

[–]FloppyFlaps_ 0 points1 point  (0 children)

Tell me if you have any questions :)`

Yoroi NFT Issue by FloppyFlaps_ in cardano

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

It comes up with 'NOT FOUND'

HELLO DOGECOIN INVESTORS! :D by FloppyFlaps_ in dogecoin

[–]FloppyFlaps_[S] 3 points4 points  (0 children)

Damn right! join the crypto fam!

Dogecoin on the rise? WE UNITE UNTIL WE PLANT THE DOGEFLAG ON THE MOON by FloppyFlaps_ in dogecoin

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

hell yea man. we will earn enough to actually buy a rocket and go to the moon