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

Fix to allow forceremove on users that have left a channel #1354

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

FortressZero
Copy link

This pull request...

  • Fixes a bug
  • Introduces a new feature
  • Improves an existing feature
  • Boosts code quality or performance

Description

Added calls to bot.JDA to retrieve a discord User object with the aim to allow DJs to remove users even when requesters have left the voice channel. Removed code pertaining to removal of multiple users requests when calling forceremove. Added parsing code to identify a User by id, mention, or username. Note that with this change calling forceremove via username will still fail if the user has left the voice channel (due to how JDA.getUserTag) is implemented) but calling forceremove with either id or mention will now correctly delete that user's requests, regardless of if they are still in the channel or server in which they originally made that request.

Purpose

This request was created to solve Issue #1249

Relevant Issue(s)

This PR closes issue #1249

… to allow DJs to remove users even when requesters have left the voice channel. Removed code pertaining to removal of multiple users requests due to that infrastructure never being used. Added parsing code to identify a User by id, mention, or username
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.

None yet

1 participant