Skip to content
This repository has been archived by the owner on Oct 15, 2023. It is now read-only.

[SlashTags] Fix buttons when skipped dynamically #122

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

npc203
Copy link
Collaborator

@npc203 npc203 commented Feb 12, 2022

Bugfix on slashtags, An edge can when "calling" the button could return a None object.
Reference: link

Added an extra check to just prematurely close the function.

Copy link
Owner

@phenom4n4n phenom4n4n left a comment

Choose a reason for hiding this comment

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

This makes it so that buttons that aren't supposed to be able to be used error with "This interaction failed". Instead of not having buttons respond, prevent them from being used in ButtonMenuMixin._get_components, either by disabling them if they fail the skip_if check or not adding them to the component list.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants