Can ^userinfo say if a user was banned? #5346
Labels
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
No due date set.
Dependencies
No dependencies set
Reference
Mrcoolgamer11/Red-DiscordBot#5346
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What component of Red (cog, command, API) would you like to see improvements on?
Command
Describe the enhancement you're suggesting.
If I
^userinfosomeone and they're not in the server, currently it just says "Member xxxxxxxx not found." no matter what. But, if that user has a ban recorded on the server, could it say "Member xxxxxxxxxxxx is banned." ?Anything else?
No response
I am personally not in favor for that.
If I do not want my members to know I banned a member, (In others words my modlog channel is private) then I think they shouldn't be able to know through the
userinfocommand.While it may be possible, the bot would require the Ban Members permission, and that's unlikely admins would put this permission for this particular functionality if they don't use the bot for moderation purposes.
And I'm not for it as I think it break a bit privacy of the banned user. And staff's discretion.
Hmm, those are good points. Maybe this could be done only when it's executed by a mod (or someone with ban users permission) in a channel that @ everyone lacks permissions to view? (and when the bot has the permission to view the banned user list of course)
We typically use
^userinfoin mod-only bot spam channels for the most part and it would be pretty useful to see if a user is banned or not.I believe userinfo is designed to be this way, userinfo gets info about a user in the server and not globally. I could be wrong though, this is just what I understood.
It's not too bad idea but I don't think it's possible lock that to ban permission. There's plenty servers out there that doesn't use bots for moderating servers and don't see that as useful feature.
All though there is a modnote cog that might be a little to help. Even if it's not what you look for.
What if, in addition to the permission gate, this was toggleable in
modset?e.g.
^modset userinfoshowbansI am not in favor of a toggleable for this command, it become much more complicated than it should be to me. It's meant to be easy to use and only show informations of an user that is present in the server.
Maybe my point of view is a bit too "out of place" as I never had to deal with this kind of context (Having to check an userinfo of someone I banned).
For us, we use our bot on a network of related servers, and it's pretty often that a user will be banned on one of them but not all. We are wondering who the user is, so we ^userinfo them on another, "oh they're not a member here" and then we have to check "ok well are they banned or just not a member" and it's a pretty big hassle. It would help a lot if the command just said, "oh actually the user is just banned here."
I'm not sure what the best compromise would be between maintaining privacy for servers that want nothing to do with displaying bans here & displaying this info, but I suspect a lot of servers are closer to our use case with this command, so I'm just making some suggestions of possible ways to enable that, while defaulting to the status quo.
I'd suggest looking into sbansync by twentysix. https://github.com/Twentysix26/x26-Cogs
You could fork Red and add it yourself to your own instance, or make a 3rd party cog for it. I'm not particularly fond of this suggestion for core either. Lots of folks on the Red server have their own implementation of userinfo, when they want to add things to it for their own preferences.
Since the conversation in this issue appears to be resolved, I'm closing it now.