Skip to content

Remove members intent#129

Open
CGillen wants to merge 4 commits into
mainfrom
bugfix/checkForBots
Open

Remove members intent#129
CGillen wants to merge 4 commits into
mainfrom
bugfix/checkForBots

Conversation

@CGillen
Copy link
Copy Markdown
Owner

@CGillen CGillen commented Mar 19, 2026

No description provided.

@CGillen CGillen force-pushed the bugfix/checkForBots branch from fffe69b to 4fbc96d Compare March 19, 2026 22:29
Copy link
Copy Markdown
Collaborator

@unknownpedestrian unknownpedestrian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe someday I'll come back and fix the naming

guild = self.client.get_guild(guild_id)
# TODO: Check guild.voice_client.channel.members for any bots: https://discordpy.readthedocs.io/en/latest/api.html?highlight=voicechannel#discord.Member.bot
if guild.voice_client is not None and len(guild.voice_client.channel.members) > 1:
in_channel = [ x for x in guild.voice_client.channel.members if not x.bot ]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note for furture self: fuck you

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this might be a cleaner way for handling these situations in the future
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants