Commit c1f5bb2
fix(InteractionResponses): Optional parameter for update() (#10797)
* fix: 🔧 don't error out if no options are provided
This commit stops calls to `options.withResponse`, etc erroring out when `interaction.update();` is called alone with no params.
* tweak: ⚙️ make options optional on typedef
* fix: 🔧 update index.d.ts
Update types to allow options to be optional
* types: add tests
---------
Co-authored-by: Almeida <[email protected]>
Co-authored-by: Jiralite <[email protected]>1 parent 8605fc8 commit c1f5bb2
File tree
3 files changed
+7
-4
lines changed- packages/discord.js
- src/structures/interfaces
- typings
3 files changed
+7
-4
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2317 | 2317 | | |
2318 | 2318 | | |
2319 | 2319 | | |
2320 | | - | |
| 2320 | + | |
2321 | 2321 | | |
2322 | | - | |
| 2322 | + | |
2323 | 2323 | | |
2324 | 2324 | | |
2325 | 2325 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1942 | 1942 | | |
1943 | 1943 | | |
1944 | 1944 | | |
| 1945 | + | |
1945 | 1946 | | |
1946 | 1947 | | |
1947 | 1948 | | |
| |||
1970 | 1971 | | |
1971 | 1972 | | |
1972 | 1973 | | |
| 1974 | + | |
1973 | 1975 | | |
1974 | 1976 | | |
1975 | 1977 | | |
| |||
2004 | 2006 | | |
2005 | 2007 | | |
2006 | 2008 | | |
| 2009 | + | |
2007 | 2010 | | |
2008 | 2011 | | |
2009 | 2012 | | |
| |||
0 commit comments