Skip to content

Commit

Permalink
Don't call set_desc_locales on non-SlashCommandBuilder instances
Browse files Browse the repository at this point in the history
  • Loading branch information
null-domain committed Oct 3, 2023
1 parent 80fb821 commit d7b9a1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lightbulb/internal.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ def _create_builder_from_command(
if cmd.app_command_default_member_permissions is not None:
bld.set_default_member_permissions(cmd.app_command_default_member_permissions)
bld.set_name_localizations(cmd.name_localizations)
bld.set_description_localizations(cmd.description_localizations)
if isinstance(bld, hikari.api.SlashCommandBuilder):
bld.set_description_localizations(cmd.description_localizations)
bld.set_is_dm_enabled(cmd.app_command_dm_enabled)
bld.set_is_nsfw(cmd.nsfw)

Expand Down

0 comments on commit d7b9a1a

Please sign in to comment.