mirror of
https://github.com/sern-handler/handler
synced 2026-06-06 01:16:55 +00:00
feat: remove edit context method for future
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user