diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 7b05d415a..58eca734e 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,4 +1,4 @@ -- blank_issues_enabled: false +blank_issues_enabled: false contact_links: - name: Discord server url: https://discord.gg/KkgMBVuEkx diff --git a/.github/ISSUE_TEMPLATE/report-bug.yml b/.github/ISSUE_TEMPLATE/report-bug.yml index c99440fa5..d4ed3cafd 100644 --- a/.github/ISSUE_TEMPLATE/report-bug.yml +++ b/.github/ISSUE_TEMPLATE/report-bug.yml @@ -31,7 +31,7 @@ body: 1. Import the module in Python. 2. Create a client variable for the library. 3. Try creating a slash command. - 4. See the traceback error given in the terminal or logger file. + 4. See the traceback error given in the terminal or logger file. validations: required: true - type: textarea diff --git a/interactions/models/component.py b/interactions/models/component.py index 7ca4d7b08..8a218d223 100644 --- a/interactions/models/component.py +++ b/interactions/models/component.py @@ -40,7 +40,8 @@ def __init__(self, **kwargs): if self._json.get("emoji") else None ) - self._json.update({"emoji": self.emoji._json}) + if self.emoji: + self._json.update({"emoji": self.emoji._json}) class SelectMenu(DictSerializerMixin):