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

[V3 Core] embed toggling support #1467

Merged
merged 11 commits into from
Mar 29, 2018

Conversation

palmtree5
Copy link
Member

Type

  • Bugfix
  • Enhancement
  • New feature

Description of the changes

Implements #1463
Still WIP as only core_commands and cog_manager are touched by this.

@palmtree5 palmtree5 added the V3 label Mar 24, 2018
@palmtree5 palmtree5 requested a review from tekulvw as a code owner March 24, 2018 23:05
@palmtree5 palmtree5 changed the title V3/enhancement/1436 core [V3 Core] embed toggling support Mar 24, 2018
@palmtree5
Copy link
Member Author

Implemented into modlog as well. Please note that as a result of having to add a param for the bot to both create_case and Case.edit (so we can check the embed setting), this is a BREAKING CHANGE for anyone using either of those functions

@palmtree5
Copy link
Member Author

Implemented for [p]help now as well. For this one, I basically check the setting inside the help command and if the user is set to not use embeds, it'll fall back to discord.py's default help formatter (so basically what [p]help looked like in v2

e.set_author(name=description, icon_url=ctx.bot.user.avatar_url)
else:
e.set_author(name=description)
description = _("Owner of %s") % ctx.bot.user
Copy link
Member

Choose a reason for hiding this comment

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

Should really be using .format() here, if we're gonna use it everywhere else we should standardize on it.

@tekulvw tekulvw merged commit 8eb075f into Cog-Creators:V3/develop Mar 29, 2018
@palmtree5 palmtree5 deleted the V3/enhancement/1436_core branch May 31, 2021 05:55
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

2 participants