[V3 General] Changed urban dictionary for my embed version #1871
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 project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Mrcoolgamer11/Red-DiscordBot!1871
Loading…
Reference in a new issue
No description provided.
Delete branch "V3/develop"
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?
Type
Description of the changes
Replaced the old urban dictionary command to an embed version I made which adds:
I'll update my branch (to include the changes made to V3/develop) after the code is reviewed if you don't mind.
I don't really want to update this branch all the time while I wait for review, hope you understand.
Hi, thanks for your contribution! 🎉
I like the new menu interface, much better than the old one! However there are a couple things which need to be changed in your code before we'll accept this 😃
Once you've made the changes, please post a comment to let us know.
@ -224,49 +223,89 @@ class General:await ctx.send(_("I need the `Embed links` permission to send this."))This help string is a bit long. Try to make the first line shorter than 72 characters, but the user should still know exactly what the command does from that line. Any further detail should be expanded after two line-breaks.
Early declaration of variable here is unnecessary
You'll want to return here
Please use
"".format()instead of concatenating strings, and also add back in the i18n call (which is surrounding the string with_()).Also, this sentence isn't quite grammatically correct, and needs to be wrapped in
_()Please use
"".format()here tooI think I've changed everything you asked for. Thanks for the review. :)
Could it be in Beta 17 or is it feature-freezed? 🤔
Had to come up with a fix for the 2048 character limit of descriptions, I hadn't thought of it.
Everything should be good now though.
Just commenting again since this is supposed to be for B18 according to the tag so I'd like a review again. Thank you.
I'm going to place this on hold to review with other core developers. See what they think.
This is sleek, and I like it a lot. The only problem I have with it is that it does not respect the core embed requested setting. It might be better to break this out into 2 separate functions, (old code and new) and have the appropriate one based on that setting called when the command is invoked.
I don't know how to respect the embed setting, if you could give me pointers, I'd be glad to do it, @mikeshardmind.
Feel free to PM me in Discord instead of commenting here so we can do this faster! 😄
There's a helper method in context for this since this particular command always should respond in the same location it was called from.
I think I did it properly so this should be done now! (sorry for the wait, I was a bit busy)
Looks solid. 👍
Alright, thanks @lionirdeadman for the PR and thanks @mikeshardmind for reviewing. This has really jazzed up the urban command.
A small word of advice @lionirdeadman for any future PR's, try not to change too much code unnecessarily. This command has essentially been rewritten from the ground up when looking at the diff - but in retrospect it only aimed to change the output format (not any HTTP request / backend stuff). Changing more than necessary gives the reviewers more work than necessary, hence why this has taken almost 2 months to be merged! However I'll let it slide and I hope you're glad this has finally had its green button pressed :)
I had already made that code in a cog, I simply modified it slightly for this PR. I'll try not to do that again though if that makes things harder for you guys.
And yeah, I'm pretty happy it got merged. ^^