From 513fffed4b9e3e8cd91d905ed05c52ecfbef0cd0 Mon Sep 17 00:00:00 2001 From: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com> Date: Sun, 12 Jun 2022 13:49:32 -0500 Subject: [PATCH] feat: remove edit context method for future --- src/handler/structures/context.ts | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/handler/structures/context.ts b/src/handler/structures/context.ts index 4a2cc00..11578cf 100644 --- a/src/handler/structures/context.ts +++ b/src/handler/structures/context.ts @@ -143,22 +143,7 @@ export default class Context { public isEmpty() { return this.oMsg.none && this.oInterac.none; } - //Hopefully this is safe and doesnt crash!! - @ExternallyUsed - public edit(payload: string | ConformedEditOptions) { - const msgPayload = new MessagePayload( - this.oInterac.unwrapOr(this.message), - typeof payload === 'string' - ? { - content: payload, - } - : payload, - ); - return msgPayload.isMessage - ? this.message.edit(msgPayload) - : this.interaction.editReply(msgPayload); - } - + //Make queueable @ExternallyUsed public reply( content: string | Omit | ReplyMessageOptions,