feat: remove edit context method for future

This commit is contained in:
Jacob Nguyen
2022-06-12 13:49:32 -05:00
parent 0cc701448b
commit 513fffed4b

View File

@@ -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<InteractionReplyOptions, 'fetchReply'> | ReplyMessageOptions,