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

Command: Avatar #3333

Open
wants to merge 4 commits into
base: development
Choose a base branch
from

Conversation

martinbndr
Copy link
Contributor

Adds an avatar command to the bot which makes it possible for owners to change the bots avatar directly via a command.

Taaku18 and others added 4 commits November 26, 2023 13:53
This PR implements a command for owners to update their bot avatar directly in discord.

Co-Authored-By: Cyrus Yip <54488650+RealCyGuy@users.noreply.github.com>
CL/CD errors fix

Co-Authored-By: Cyrus Yip <54488650+RealCyGuy@users.noreply.github.com>
Co-Authored-By: Cyrus Yip <54488650+RealCyGuy@users.noreply.github.com>
raidensakura added a commit to raidensakura/modmail that referenced this pull request Mar 31, 2024
await self.bot.user.edit(avatar=dc_avatar)
logger.info("Bot Avatar updated.")
except Exception:
raise ValueError("Uploading the avatar to discord failed.")
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't look like it handles the exception gracefully, the command will just error silently giving no feedback to the user indicating the command has failed. Ideally this also should invoke @trigger_typing since it could take a few seconds to complete.

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

3 participants