ty <3

Co-Authored-By: Ian Mullins <39538734+ianmullins@users.noreply.github.com>
This commit is contained in:
Elysia
2024-06-17 18:05:28 +07:00
parent 5439577447
commit 6a4616e941

View File

@@ -1014,8 +1014,8 @@ class Message extends Base {
} else {
button = this.components[button.Y]?.components[button.X];
}
button = button.toJSON();
if (!button) throw new TypeError('BUTTON_NOT_FOUND');
button = button.toJSON();
if (!button.custom_id || button.disabled) throw new TypeError('BUTTON_CANNOT_CLICK');
const nonce = SnowflakeUtil.generate();
const data = {