Skip to content

Commit 7549168

Browse files
fix(types): corrected reply() method params type
1 parent 84192b9 commit 7549168

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/structures/Interaction/InteractionReponseMixin.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,16 +119,16 @@ export function BaseInteractionResponseMixin<
119119
*
120120
*/
121121
async reply(
122-
options: string | (BaseMessageOptionsWithPoll & { withResponse?: false })
122+
options: string | (InteractionReplyOptions & { withResponse?: false })
123123
): Promise<undefined>;
124124
async reply(
125-
options: string | (BaseMessageOptionsWithPoll & { withResponse: true })
125+
options: string | (InteractionReplyOptions & { withResponse: true })
126126
): Promise<InteractionCallbackResponse>;
127127
async reply(
128128
options:
129129
| string
130130
// | MessagePayload (to be added)
131-
| (BaseMessageOptionsWithPoll & { withResponse?: boolean })
131+
| (InteractionReplyOptions & { withResponse?: boolean })
132132
): Promise<InteractionCallbackResponse | undefined> {
133133
if (this.deferred || this.replied)
134134
throw new DiscordHttpsError(

0 commit comments

Comments
 (0)