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

fix: command is not synced and not interacted #59

Merged
merged 3 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions crenata/application/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ async def closeup(self) -> None:
async def setup_hook(self) -> None:
if self.config.PRODUCTION:
await self.tree.sync()

else:
await self.tree.sync(guild=Object(self.config.TEST_GUILD_ID))
test_guild = Object(self.config.TEST_GUILD_ID)
self.tree.copy_global_to(guild=test_guild)
await self.tree.sync(guild=test_guild)

async def close(self) -> None:
await self.closeup()
Expand Down
3 changes: 0 additions & 3 deletions crenata/application/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,3 @@ async def on_error(
self, interaction: Interaction[ClientT], error: AppCommandError
) -> None:
await self.error_handler.on_error(interaction, error)

async def interaction_check(self, interaction: Interaction[ClientT]) -> bool:
...
Loading
Loading