Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sometimes bot doesnt triger when anybody change nickname #4924

Closed
DuBeAl opened this issue Oct 20, 2020 · 5 comments
Closed

Sometimes bot doesnt triger when anybody change nickname #4924

DuBeAl opened this issue Oct 20, 2020 · 5 comments

Comments

@DuBeAl
Copy link

DuBeAl commented Oct 20, 2020

client.on('guildMemberUpdate', async (oldMember, newMember) => {
if(oldMember.guild.remove && newMember.guild.add) return;
let onlem = oldMember.displayName == newMember.displayName
const kanal = client.channels.cache.get('706601933066076190');
if (!onlem) { kanal.send(**ID:** \${newMember.user.id}`İsim Değiştiren: <@${newMember.user.id}>`) }
});

https://www.youtube.com/watch?v=XFv9fFnSlhw&feature=youtu.be

bot tagged saitsarp but didnt tag furkanuskanus
and sometimes mention irrelevant people like the first person I checked his logs

@almostSouji
Copy link
Member

almostSouji commented Oct 20, 2020

Edit: oversight, first return will never trigger due to that! Will re-open until further investigations

@DuBeAl
Copy link
Author

DuBeAl commented Oct 20, 2020

I know, there is no software problem here. The code is working well. I tested I tried it on 2 different servers(1100 people and 130.000 people). It is working well on first server but it did not work on second server like video

@almostSouji
Copy link
Member

almostSouji commented Oct 31, 2020

No it is not, this was posted before the cache change applied. comment delted

@SpaceEEC
Copy link
Member

SpaceEEC commented Nov 8, 2020

Could this maybe be related to #4986? I am not too sure what exactly is happening in the video, but if the member for which the event is not being emitted is uncached, that would seem plausible.

@FomaFomitch
Copy link

Could this maybe be related to #4986? I am not too sure what exactly is happening in the video, but if the member for which the event is not being emitted is uncached, that would seem plausible.

I think I have an issue with the cache. Works just fine 2months ago, now there is no update when a user react to my message unless he "speak" on the channel. How to uncache a user?

@iCrawl iCrawl closed this as completed May 6, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants