Commit 09aa8bc
committed
Refactor suggest listener: improve button validation and adjust type annotations
- Added validation for invalid button interactions with user-friendly ephemeral replies.
- Updated `SUGGESTION_BUTTON_MAP` type annotations for better type safety and error handling.
- Reformatted imports for consistency and readability.1 parent 49ca3e0 commit 09aa8bc
1 file changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
| |||
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
50 | 62 | | |
51 | 63 | | |
52 | 64 | | |
53 | | - | |
54 | 65 | | |
55 | 66 | | |
56 | 67 | | |
| |||
0 commit comments