implemented warn by userID #6476

Closed
Ascensionn wants to merge 2 commits from V3/develop into V3/develop
Ascensionn commented 2024-11-20 22:34:56 +01:00 (Migrated from github.com)

Description of the changes

As per #6445, added feature to make reddiscordbot be able to warn a user by their userID or their name. It was a simple short change

Have the changes in this PR been tested?

image
image

### Description of the changes As per #6445, added feature to make reddiscordbot be able to warn a user by their userID or their name. It was a simple short change ### Have the changes in this PR been tested? ![image](https://github.com/user-attachments/assets/174bfbc6-8ebb-4ff2-930e-3fdb85d1a453) ![image](https://github.com/user-attachments/assets/1bfd60a2-2d91-4874-bc96-dc93a50d7ced)
Kowlin commented 2024-11-20 23:21:47 +01:00 (Migrated from github.com)

Hey there,
Thank you for your contribution, however. This functionality is already build in the handler of Discord.py's discord.Member argument. Where it will check if the author of a command has included a mention, display name, full username or user ID. Therefor this PR is not required.

Hey there, Thank you for your contribution, however. This functionality is already build in the handler of Discord.py's ``discord.Member`` argument. Where it will check if the author of a command has included a mention, display name, full username or user ID. Therefor this PR is not required.
Flame442 commented 2024-11-21 00:54:33 +01:00 (Migrated from github.com)

The linked issue is specific to the case where the user has left the server. In that case, the Member converter will not work with an ID, as it only matches users that are currently in the server. The fix for the issue requires additional consideration, as the command expects a fully resolved Member object that would not be available if the user is no longer in the server. This change, using get_member, also relies on the user being in the server.

The linked issue is specific to the case where the user has left the server. In that case, the `Member` converter will not work with an ID, as it only matches users that are currently in the server. The fix for the issue requires additional consideration, as the command expects a fully resolved `Member` object that would not be available if the user is no longer in the server. This change, using `get_member`, also relies on the user being in the server.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot!6476
No description provided.