You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?php
declare(strict_types=1);
namespace App\Listeners;
use Nwilging\LaravelDiscordBot\Contracts\Listeners\ApplicationCommandInteractionEventListenerContract;
use Nwilging\LaravelDiscordBot\Events\ApplicationCommandInteractionEvent;
use Illuminate\Contracts\Queue\ShouldQueue;
class TestCommandListener implements ShouldQueue, ApplicationCommandInteractionEventListenerContract
{
public function replyContent(ApplicationCommandInteractionEvent $event): ?string
{
return 'loading';
}
public function behavior(ApplicationCommandInteractionEvent $event): int
{
return static::REPLY_TO_MESSAGE;
}
public function command(): ?string
{
return 'test1';
}
public function handle(ApplicationCommandInteractionEvent $event): void
{
// handle the interaction
}
}
https://imgur.com/a/CFpYxQI
i called random commands but i set public function command(): ?string
{
return 'test1';
} to test1
still i can call the command listerner with any command
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: