discord.simplified.js 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs CHANGED
@@ -1,3 +1,3 @@
1
- var _0x632ee=["\x2a\x2c\x3a\x7f\x2c\x2b\x2d\x36\x3c\x2b","\x3b\x36\x2c\x3c\x30\x2d\x3b\x71\x35\x2c","\x03\x27\x6e\x3d\x04\x6f\x32","\x03\x27\x6e\x3d\x04\x66\x68\x32","\x03\x27\x6e\x3d\x04\x66\x6f\x32","\x03\x27\x6e\x3d\x04\x66\x69\x32","\x03\x27\x6e\x3d\x04\x66\x6c\x32","\x03\x27\x6e\x3d\x04\x66\x6e\x32","\x03\x27\x6e\x3d\x04\x66\x6d\x32","\x3b\x36\x2c\x33\x3e\x31\x38","\x16\x11\x19\x10","\x08\x1e\x0d\x11","\x1a\x0d\x0d\x10\x0d","\x0c\x0a\x1c\x1c\x1a\x0c\x0c","\x1b\x1a\x1d\x0a\x18","\x03\x31","\x32\x3a\x2c\x2c\x3e\x38\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x32\x3a\x2c\x2c\x3e\x38\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x32\x3a\x2c\x2c\x3e\x38\x3a\x1b\x3a\x33\x3a\x2b\x3a\x1d\x2a\x33\x34","\x3c\x37\x3e\x31\x31\x3a\x33\x0f\x36\x31\x2c\x0a\x2f\x3b\x3e\x2b\x3a","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0d\x3a\x3e\x3c\x2b\x36\x30\x31\x1e\x3b\x3b","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0d\x3a\x3e\x3c\x2b\x36\x30\x31\x0d\x3a\x32\x30\x29\x3a","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0d\x3a\x3e\x3c\x2b\x36\x30\x31\x0d\x3a\x32\x30\x29\x3a\x1e\x33\x33","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0d\x3a\x3e\x3c\x2b\x36\x30\x31\x0d\x3a\x32\x30\x29\x3a\x1a\x32\x30\x35\x36","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0f\x30\x33\x33\x09\x30\x2b\x3a\x1e\x3b\x3b","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0f\x30\x33\x33\x09\x30\x2b\x3a\x0d\x3a\x32\x30\x29\x3a","\x38\x2a\x36\x33\x3b\x12\x3a\x32\x3d\x3a\x2d\x1e\x3b\x3b","\x38\x2a\x36\x33\x3b\x12\x3a\x32\x3d\x3a\x2d\x0d\x3a\x32\x30\x29\x3a","\x38\x2a\x36\x33\x3b\x12\x3a\x32\x3d\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x12\x3a\x32\x3d\x3a\x2d\x1e\x29\x3e\x36\x33\x3e\x3d\x33\x3a","\x38\x2a\x36\x33\x3b\x12\x3a\x32\x3d\x3a\x2d\x2c\x1c\x37\x2a\x31\x34","\x38\x2a\x36\x33\x3b\x1d\x3e\x31\x1e\x3b\x3b","\x38\x2a\x36\x33\x3b\x1d\x3e\x31\x0d\x3a\x32\x30\x29\x3a","\x38\x2a\x36\x33\x3b\x1c\x2d\x3a\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x1b\x3a\x33\x3a\x2b\x3a","\x38\x2a\x36\x33\x3b\x0a\x2f\x3b\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x1e\x29\x3e\x36\x33\x3e\x3d\x33\x3a","\x38\x2a\x36\x33\x3b\x0a\x31\x3e\x29\x3e\x36\x33\x3e\x3d\x33\x3a","\x38\x2a\x36\x33\x3b\x1e\x2a\x3b\x36\x2b\x13\x30\x38\x1a\x31\x2b\x2d\x26\x1c\x2d\x3a\x3e\x2b\x3a","\x2d\x30\x33\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x2d\x30\x33\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x2d\x30\x33\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x3c\x37\x3e\x31\x31\x3a\x33\x1c\x2d\x3a\x3e\x2b\x3a","\x3c\x37\x3e\x31\x31\x3a\x33\x1b\x3a\x33\x3a\x2b\x3a","\x3c\x37\x3e\x31\x31\x3a\x33\x0a\x2f\x3b\x3e\x2b\x3a","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x1c\x2d\x3a\x3e\x2b\x3a","\x29\x30\x36\x3c\x3a\x0c\x2b\x3e\x2b\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x29\x30\x36\x3c\x3a\x0c\x3a\x2d\x29\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x29\x30\x36\x3c\x3a\x1c\x37\x3e\x31\x31\x3a\x33\x1a\x39\x39\x3a\x3c\x2b\x0c\x3a\x31\x3b","\x2b\x26\x2f\x36\x31\x38\x0c\x2b\x3e\x2d\x2b","\x2f\x2d\x3a\x2c\x3a\x31\x3c\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x2a\x2c\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x28\x3a\x3d\x37\x30\x30\x34\x2c\x0a\x2f\x3b\x3e\x2b\x3a","\x36\x31\x29\x36\x2b\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x36\x31\x29\x36\x2b\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x1c\x2d\x3a\x3e\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x1b\x3a\x33\x3a\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x0a\x2f\x3b\x3e\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x12\x3a\x32\x3d\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x12\x3a\x32\x3d\x3a\x2d\x2c\x0a\x2f\x3b\x3e\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x13\x36\x2c\x2b\x0c\x26\x31\x3c","\x2c\x2b\x3e\x38\x3a\x16\x31\x2c\x2b\x3e\x31\x3c\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x2c\x2b\x3e\x38\x3a\x16\x31\x2c\x2b\x3e\x31\x3c\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x2c\x2b\x3e\x38\x3a\x16\x31\x2c\x2b\x3e\x31\x3c\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x3e\x2a\x2b\x30\x12\x30\x3b\x3a\x2d\x3e\x2b\x36\x30\x31\x1e\x3c\x2b\x36\x30\x31\x1a\x27\x3a\x3c\x2a\x2b\x36\x30\x31","\x3e\x2a\x2b\x30\x12\x30\x3b\x3a\x2d\x3e\x2b\x36\x30\x31\x0d\x2a\x33\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x3e\x2a\x2b\x30\x12\x30\x3b\x3a\x2d\x3e\x2b\x36\x30\x31\x0d\x2a\x33\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x3e\x2a\x2b\x30\x12\x30\x3b\x3a\x2d\x3e\x2b\x36\x30\x31\x0d\x2a\x33\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x3a\x32\x30\x35\x36\x1c\x2d\x3a\x3e\x2b\x3a","\x3a\x32\x30\x35\x36\x1b\x3a\x33\x3a\x2b\x3a","\x3a\x32\x30\x35\x36\x0a\x2f\x3b\x3e\x2b\x3a","\x2c\x2b\x36\x3c\x34\x3a\x2d\x1c\x2d\x3a\x3e\x2b\x3a","\x2c\x2b\x36\x3c\x34\x3a\x2d\x1b\x3a\x33\x3a\x2b\x3a","\x2c\x2b\x36\x3c\x34\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x3c\x37\x3a\x3b\x2a\x33\x3a\x3b\x1a\x29\x3a\x31\x2b\x1c\x2d\x3a\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x3c\x37\x3a\x3b\x2a\x33\x3a\x3b\x1a\x29\x3a\x31\x2b\x1b\x3a\x33\x3a\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x3c\x37\x3a\x3b\x2a\x33\x3a\x3b\x1a\x29\x3a\x31\x2b\x0a\x2f\x3b\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x3c\x37\x3a\x3b\x2a\x33\x3a\x3b\x1a\x29\x3a\x31\x2b\x0a\x2c\x3a\x2d\x1e\x3b\x3b","\x38\x2a\x36\x33\x3b\x0c\x3c\x37\x3a\x3b\x2a\x33\x3a\x3b\x1a\x29\x3a\x31\x2b\x0a\x2c\x3a\x2d\x0d\x3a\x32\x30\x29\x3a","\x38\x2a\x36\x33\x3b\x0c\x30\x2a\x31\x3b\x3d\x30\x3e\x2d\x3b\x0c\x30\x2a\x31\x3b\x1c\x2d\x3a\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x30\x2a\x31\x3b\x3d\x30\x3e\x2d\x3b\x0c\x30\x2a\x31\x3b\x1b\x3a\x33\x3a\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x30\x2a\x31\x3b\x3d\x30\x3e\x2d\x3b\x0c\x30\x2a\x31\x3b\x0a\x2f\x3b\x3e\x2b\x3a","\x2c\x2a\x3d\x2c\x3c\x2d\x36\x2f\x2b\x36\x30\x31\x1c\x2d\x3a\x3e\x2b\x3a","\x2c\x2a\x3d\x2c\x3c\x2d\x36\x2f\x2b\x36\x30\x31\x1b\x3a\x33\x3a\x2b\x3a","\x2c\x2a\x3d\x2c\x3c\x2d\x36\x2f\x2b\x36\x30\x31\x0a\x2f\x3b\x3e\x2b\x3a","\x2d\x3a\x3e\x3b\x26","\x3c\x33\x36\x3a\x31\x2b\x0d\x3a\x3e\x3b\x26","\x2c\x37\x3e\x2d\x3b\x0d\x3a\x3e\x3b\x26","\x2c\x37\x3e\x2d\x3b\x1b\x36\x2c\x3c\x30\x31\x31\x3a\x3c\x2b","\x2c\x37\x3e\x2d\x3b\x1a\x2d\x2d\x30\x2d","\x2c\x37\x3e\x2d\x3b\x0d\x3a\x3c\x30\x31\x31\x3a\x3c\x2b\x36\x31\x38","\x2c\x37\x3e\x2d\x3b\x0d\x3a\x2c\x2a\x32\x3a","\x3a\x2d\x2d\x30\x2d","\x28\x3e\x2d\x31","\x3b\x3a\x3d\x2a\x38","\x2d\x3e\x28","\x39\x2a\x31\x3c\x2b\x36\x30\x31","\x2c\x2b\x2d\x36\x31\x38","\x0f\x33\x2a\x38\x36\x31","\x1a\x29\x3a\x2d\x26\x7f\x2f\x33\x2a\x38\x36\x31\x7f\x32\x2a\x2c\x2b\x7f\x3a\x27\x2f\x30\x2d\x2b\x7f\x3e\x7f\x7d\x31\x3e\x32\x3a\x7d\x7f\x2c\x2b\x2d\x36\x31\x38\x7f\x39\x36\x3a\x33\x3b\x71","\x0f\x33\x2a\x38\x36\x31\x7f\x2c\x33\x3e\x2c\x37\x7f\x3c\x30\x32\x32\x3e\x31\x3b\x7f\x2d\x3a\x38\x36\x2c\x2b\x2d\x3e\x2b\x36\x30\x31","\x30\x31\x0d\x3a\x3e\x3b\x26","\x30\x31\x12\x3a\x2c\x2c\x3e\x38\x3a","\x30\x31\x12\x3a\x2c\x2c\x3e\x38\x3a\x1a\x3b\x36\x2b","\x30\x31\x12\x3a\x2c\x2c\x3e\x38\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x30\x31\x12\x3a\x32\x3d\x3a\x2d\x15\x30\x36\x31","\x30\x31\x12\x3a\x32\x3d\x3a\x2d\x13\x3a\x3e\x29\x3a","\x30\x31\x12\x3a\x32\x3d\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x30\x31\x16\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31","\x30\x31\x0c\x33\x3e\x2c\x37\x1c\x30\x32\x32\x3e\x31\x3b","\x30\x31\x1d\x2a\x2b\x2b\x30\x31","\x30\x31\x0c\x3a\x33\x3a\x3c\x2b\x12\x3a\x31\x2a","\x30\x31\x12\x30\x3b\x3e\x33","\x30\x31\x18\x2a\x36\x33\x3b\x15\x30\x36\x31","\x30\x31\x18\x2a\x36\x33\x3b\x13\x3a\x3e\x29\x3a","\x30\x31\x09\x30\x36\x3c\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x30\x31\x0d\x30\x33\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x30\x31\x0d\x30\x33\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x30\x31\x1c\x37\x3e\x31\x31\x3a\x33\x1c\x2d\x3a\x3e\x2b\x3a","\x30\x31\x1c\x37\x3e\x31\x31\x3a\x33\x1b\x3a\x33\x3a\x2b\x3a","\x30\x31\x1a\x2d\x2d\x30\x2d","\x3b\x3a\x2c\x2b\x2d\x30\x26","\x30\x31\x1b\x3a\x2c\x2b\x2d\x30\x26","\x30\x31\x33\x36\x31\x3a","\x36\x3b\x33\x3a","\x3b\x31\x3b","\x36\x31\x29\x36\x2c\x36\x3d\x33\x3a","\x3e\x33\x33","\x2a\x2c\x3a\x2d\x2c","\x2d\x30\x33\x3a\x2c","\x3a\x29\x3a\x2d\x26\x30\x31\x3a","\x6e\x6f","\x1d\x30\x2b\x7c\x2c\x2b\x3e\x2d\x2b","\x1d\x30\x2b\x7c\x38\x3a\x2b\x1c\x37\x3e\x31\x31\x3a\x33","\x2f\x33\x3e\x26\x36\x31\x38","\x1d\x30\x2b\x7c\x2c\x3a\x2b\x0f\x2d\x3a\x2c\x3a\x31\x3c\x3a","\x2c\x2b\x2d\x3a\x3e\x32\x36\x31\x38","\x3c\x30\x33\x33\x3a\x3c\x2b","\x3a\x31\x3b","\x2b\x36\x32\x3a","\x2a\x2c\x3a\x2d\x71\x3b\x32","\x32\x3a\x32\x3d\x3a\x2d\x71\x3c\x3e\x31","\x32\x3a\x32\x3d\x3a\x2d\x71\x3e\x3b\x3b\x0d\x30\x33\x3a","\x32\x3a\x32\x3d\x3a\x2d\x71\x2d\x3a\x32\x30\x29\x3a\x0d\x30\x33\x3a","\x32\x3a\x32\x3d\x3a\x2d\x71\x2b\x36\x32\x3a\x30\x2a\x2b","\x3c\x37\x3e\x31\x31\x3a\x33\x71\x2f\x2a\x2d\x38\x3a","\x3c\x37\x3e\x31\x31\x3a\x33\x71\x2c\x3a\x31\x3b\x1a\x32\x3d\x3a\x3b","\x3c\x37\x3e\x31\x31\x3a\x33\x71\x2c\x3a\x31\x3b\x1d\x2a\x2b\x2b\x30\x31\x2c","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x71\x30\x34","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x71\x39\x3e\x36\x33","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x71\x2f\x2d\x36\x29\x3e\x2b\x3a","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x71\x2b\x37\x36\x31\x34","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x71\x2d\x3a\x39\x2d\x3a\x2c\x37","\x3d\x2a\x2b\x2b\x30\x31","\x2c\x3a\x33\x3a\x3c\x2b","\x32\x30\x3b\x3e\x33","\x3e\x28\x3e\x36\x2b\x1c\x30\x32\x2f\x30\x31\x3a\x31\x2b","\x3c\x30\x33\x33\x3a\x3c\x2b\x1c\x30\x32\x2f\x30\x31\x3a\x31\x2b\x2c","\x0b\x37\x2a\x32\x3d\x31\x3e\x36\x33\x7c\x2a\x2d\x33","\x2a\x2d\x33\x77\x76\x7f\x2d\x3a\x2e\x2a\x36\x2d\x3a\x2c\x7f\x3e\x7f\x0a\x0d\x13\x7f\x2c\x2b\x2d\x36\x31\x38\x71","\x0b\x37\x2a\x32\x3d\x31\x3e\x36\x33\x7c\x3b\x3a\x2c\x3c\x2d\x36\x2f\x2b\x36\x30\x31","\x3b\x3a\x2c\x3c\x2d\x36\x2f\x2b\x36\x30\x31\x77\x76\x7f\x2d\x3a\x2e\x2a\x36\x2d\x3a\x2c\x7f\x3e\x7f\x2c\x2b\x2d\x36\x31\x38\x71","\x0c\x3a\x3c\x2b\x36\x30\x31\x7c\x2b\x3a\x27\x2b","\x2b\x3a\x27\x2b\x77\x76\x7f\x2d\x3a\x2e\x2a\x36\x2d\x3a\x2c\x7f\x3e\x7f\x3c\x30\x31\x2b\x3a\x31\x2b\x7f\x2c\x2b\x2d\x36\x31\x38\x71","\x0c\x3a\x3c\x2b\x36\x30\x31\x7c\x2b\x37\x2a\x32\x3d\x31\x3e\x36\x33","\x2b\x37\x2a\x32\x3d\x31\x3e\x36\x33\x77\x76\x7f\x2d\x3a\x2e\x2a\x36\x2d\x3a\x2c\x7f\x3e\x7f\x0a\x0d\x13\x7f\x2c\x2b\x2d\x36\x31\x38\x71","\x0c\x3a\x3c\x2b\x36\x30\x31\x7c\x3d\x2a\x2b\x2b\x30\x31","\x3d\x2a\x2b\x2b\x30\x31\x77\x76\x7f\x2d\x3a\x2e\x2a\x36\x2d\x3a\x2c\x7f\x3e\x7f\x33\x3e\x3d\x3a\x33\x71","\x3d\x2a\x2b\x2b\x30\x31\x77\x76\x7f\x2d\x3a\x2e\x2a\x36\x2d\x3a\x2c\x7f\x3e\x7f\x3c\x2a\x2c\x2b\x30\x32\x16\x3b\x71","\x19\x36\x33\x3a\x1c\x30\x32\x2f\x30\x31\x3a\x31\x2b\x7c\x2a\x2d\x33","\x2c\x37\x30\x2d\x2b","\x12\x30\x3b\x3e\x33\x7c\x39\x36\x3a\x33\x3b","\x0c\x32\x3e\x33\x33","\x09\x30\x36\x3c\x3a\x1c\x37\x3e\x31\x31\x3a\x33\x0c\x2b\x3e\x2b\x2a\x2c","\x1d\x30\x2b\x7c\x2c\x2b\x3e\x2d\x2b\x77\x76\x7f\x37\x3e\x2c\x7f\x31\x30\x2b\x7f\x3d\x3a\x3a\x31\x7f\x3c\x3e\x33\x33\x3a\x3b\x7f\x26\x3a\x2b\x71","\x2c\x3a\x31\x3b\x08\x3a\x3d\x37\x30\x30\x34","\x2d\x3a\x33\x3e\x2b\x36\x29\x3a","\x2b\x36\x32\x3a\x77\x76","\x7c\x6a\x67\x69\x6a\x19\x6d","\x7c\x19\x19\x19\x19\x19\x19","\x7c\x6d\x6c\x6d\x68\x6d\x1e","\x7c\x6d\x1d\x6d\x1b\x6c\x6e","\x7c\x66\x6a\x1e\x6a\x1e\x69","\x7c\x1a\x1b\x6b\x6d\x6b\x6a","\x7c\x6a\x68\x19\x6d\x67\x68","\x7c\x19\x1a\x1a\x68\x6a\x1c","\x7c\x6c\x6b\x66\x67\x1b\x1d","\x7c\x1a\x69\x68\x1a\x6d\x6d","\x7c\x66\x1d\x6a\x66\x1d\x69","\x7c\x1a\x1d\x6b\x6a\x66\x1a","\x7c\x19\x6e\x1c\x6b\x6f\x19","\x7c\x6e\x1e\x1d\x1c\x66\x1c","\x7c\x6e\x1e\x1d\x1c\x19\x6d","\x7c\x6c\x6b\x6b\x66\x6a\x1a","\x31\x2a\x32\x3d\x3a\x2d","\x1c\x30\x30\x33\x3b\x30\x28\x31","\x6f\x2c"];
2
- var _0x64625=function(i){return _0x632ee[i].split('').map(function(c){return String.fromCharCode(c.charCodeAt(0)^0x5f);}).join('');};
3
- _0x64625(0); const { Client, GatewayIntentBits, Partials, REST, Routes, Message, MessageFlags, EmbedBuilder: DjsEmbedBuilder, ButtonBuilder: DjsButtonBuilder, ActionRowBuilder: DjsActionRowBuilder, ButtonStyle, StringSelectMenuBuilder, ContainerBuilder, TextDisplayBuilder, SectionBuilder, ThumbnailBuilder, FileBuilder, SeparatorBuilder, SeparatorSpacingSize, MediaGalleryBuilder, MediaGalleryItemBuilder, PermissionFlagsBits, ChannelType, ComponentType, TextInputStyle, InteractionType, ActivityType, WebhookClient, User, GuildMember, Guild, BaseGuildTextChannel, BaseInteraction, ModalBuilder: DjsModalBuilder, TextInputBuilder } = require(_0x64625(1)); let _0xf1e4 = null; const _0x1051b = { reset: _0x64625(2), white: _0x64625(3), gray: _0x64625(4), cyan: _0x64625(5), yellow: _0x64625(6), red: _0x64625(7), green: _0x64625(8), }; class Logger { constructor(_0x17865) { this._tag = _0x17865 || _0x64625(9); } _ts() { const _0x11852 = new Date(); const _0x12b89 = String(_0x11852.getHours()).padStart(2, '0'); const _0x13ec0 = String(_0x11852.getMinutes()).padStart(2, '0'); const _0x151f7 = String(_0x11852.getSeconds()).padStart(2, '0'); return `${_0x12b89}:${_0x13ec0}:${_0x151f7}`; } _write(levelLabel, levelColor, ...args) { const _0x1652e = `${_0x1051b.gray}[${this._ts()}]${_0x1051b.reset}`; const _0x17865 = `${_0x1051b.gray}[${this._tag}]${_0x1051b.reset}`; const _0x18b9c = `${levelColor}[${levelLabel}]${_0x1051b.reset}`; const _0x19ed3 = `${_0x1051b.white}${_0x2bf0c.join(' ')}${_0x1051b.reset}`; process.stdout.write(`${_0x1652e} ${_0x17865} ${_0x18b9c} ${_0x19ed3}\n`); } info(...args) { this._write(_0x64625(10), _0x1051b.cyan, ...args); } warn(...args) { this._write(_0x64625(11), _0x1051b.yellow, ...args); } error(...args) { this._write(_0x64625(12), _0x1051b.red, ...args); } success(...args) { this._write(_0x64625(13), _0x1051b.green, ...args); } debug(...args) { if (Logger.debug) this._write(_0x64625(14), _0x1051b.gray, ...args); } } Logger.debug = false; const log = new Logger(_0x64625(9)); function _0x1b20a(title, err, fatal = false) { log.error(`[discord.simplified.js] ${title}`); if (err instanceof Error) { log.error(` Message : ${err.message}`); if (err.stack) { err.stack.split(_0x64625(15)).slice(1).forEach(l => log.error(` ${l.trim()}`)); } } else { log.error(` Details : ${err}`); } if (fatal) throw new Error(`[discord.simplified.js] ${title}: ${err instanceof Error ? err.message : err}`); } const _0x1c541 = { message: _0x64625(16), messageDelete: _0x64625(17), messageUpdate: _0x64625(18), messageBulkDelete: _0x64625(19), messagePin: _0x64625(20), reaction: _0x64625(21), reactionRemove: _0x64625(22), reactionRemoveAll: _0x64625(23), reactionRemoveEmoji: _0x64625(24), pollVoteAdd: _0x64625(25), pollVoteRemove: _0x64625(26), join: _0x64625(27), leave: _0x64625(28), memberUpdate: _0x64625(29), memberAvailable: _0x64625(30), membersChunk: _0x64625(31), ban: _0x64625(32), unban: _0x64625(33), guildJoin: _0x64625(34), guildLeave: _0x64625(35), guildUpdate: _0x64625(36), guildAvailable: _0x64625(37), guildUnavailable: _0x64625(38), auditLog: _0x64625(39), roleCreate: _0x64625(40), roleDelete: _0x64625(41), roleUpdate: _0x64625(42), channelCreate: _0x64625(43), channelDelete: _0x64625(44), channelUpdate: _0x64625(45), interaction: _0x64625(46), voiceUpdate: _0x64625(47), voiceServer: _0x64625(48), voiceEffect: _0x64625(49), typing: _0x64625(50), presence: _0x64625(51), userUpdate: _0x64625(52), webhooks: _0x64625(53), inviteCreate: _0x64625(54), inviteDelete: _0x64625(55), threadCreate: _0x64625(56), threadDelete: _0x64625(57), threadUpdate: _0x64625(58), threadMemberUpdate: _0x64625(59), threadMembersUpdate: _0x64625(60), threadListSync: _0x64625(61), stageCreate: _0x64625(62), stageDelete: _0x64625(63), stageUpdate: _0x64625(64), automodAction: _0x64625(65), automodCreate: _0x64625(66), automodDelete: _0x64625(67), automodUpdate: _0x64625(68), emojiCreate: _0x64625(69), emojiDelete: _0x64625(70), emojiUpdate: _0x64625(71), stickerCreate: _0x64625(72), stickerDelete: _0x64625(73), stickerUpdate: _0x64625(74), scheduledCreate: _0x64625(75), scheduledDelete: _0x64625(76), scheduledUpdate: _0x64625(77), scheduledUserAdd: _0x64625(78), scheduledUserRemove: _0x64625(79), soundCreate: _0x64625(80), soundDelete: _0x64625(81), soundUpdate: _0x64625(82), subscriptionCreate: _0x64625(83), subscriptionDelete: _0x64625(84), subscriptionUpdate: _0x64625(85), ready: _0x64625(86), clientReady: _0x64625(87), shardReady: _0x64625(88), shardDisconnect: _0x64625(89), shardError: _0x64625(90), shardReconnect: _0x64625(91), shardResume: _0x64625(92), error: _0x64625(93), warn: _0x64625(94), debug: _0x64625(95), raw: _0x64625(96) }; function _0x1d878(_0x2121d, method, ...args) { try { if (typeof _0x2121d[method] === _0x64625(97)) _0x2121d[method](...args); } catch (err) { _0x1b20a(`Plugin[${_0x2121d.name}]#${method}`, err); } } function _0x1ebaf(bot, plugins) { for (const _0x1fee6 of plugins) { if (!_0x1fee6 || typeof _0x1fee6.name !== _0x64625(98)) { _0x1b20a(_0x64625(99), new Error(_0x64625(100))); continue; } const _0x2121d = Object.assign(Object.create(null), _0x1fee6); try { if (typeof _0x2121d.init === _0x64625(97)) _0x2121d.init(bot); } catch (err) { _0x1b20a(`Plugin[${_0x2121d.name}]#init`, err); continue; } bot.plugin[_0x2121d.name] = _0x2121d; if (Array.isArray(_0x2121d.commands)) { for (const _0x22554 of _0x2121d.commands) { bot._pluginSlashCommands.push({ _0x2121d, _0x22554 }); } } if (Array.isArray(_0x2121d.prefixCommands)) { for (const _0x22554 of _0x2121d.prefixCommands) { bot._pluginPrefixCommands.push({ _0x2121d, _0x22554 }); } } if (Array.isArray(_0x2121d.tasks)) { for (const _0x2388b of _0x2121d.tasks) { bot._pluginTasks.push({ _0x2121d, _0x2388b }); } } } _0x24bc2(bot); } function _0x24bc2(bot) { const _0x25ef9 = () => Object.values(bot.plugin); Client.prototype.on.call(bot, _0x64625(87), async () => { if (bot._pluginSlashCommands.length > 0) { try { const body = bot._pluginSlashCommands.map(({ _0x22554 }) => ({ name: _0x22554.name, description: _0x22554.description, options: _0x22554.options || [] })); await bot.rest.put(Routes.applicationCommands(bot.user.id), { body }); } catch (err) { _0x1b20a(_0x64625(101), err); } } for (const { _0x2121d, _0x2388b } of bot._pluginTasks) { _0x2388b._intervalId = setInterval(() => { try { _0x2388b.execute.call(_0x2121d, bot); } catch (err) { _0x1b20a(`Plugin[${_0x2121d.name}] task[${_0x2388b.name}]`, err); } }, _0x2388b.interval); } for (const _0x27230 of _0x25ef9()) _0x1d878(_0x27230, _0x64625(102)); }); Client.prototype.on.call(bot, _0x64625(16), (_0x19ed3) => { for (const _0x27230 of _0x25ef9()) { if (typeof _0x27230.messageMiddleware === _0x64625(97)) { try { if (_0x27230.messageMiddleware(_0x19ed3) === false) return; } catch (err) { _0x1b20a(`Plugin[${_0x27230.name}]#messageMiddleware`, err); } } } if (bot._pluginPrefixCommands.length > 0 && _0x19ed3.content) { const prefix = bot.prefix || '!'; for (const { _0x2121d, _0x22554 } of bot._pluginPrefixCommands) { const _0x28567 = [_0x22554.name, ...(_0x22554.aliases || [])]; for (const _0x2989e of _0x28567) { const _0x2abd5 = (prefix + _0x2989e).toLowerCase(); if (_0x19ed3.content.toLowerCase().startsWith(_0x2abd5)) { const _0x2bf0c = _0x19ed3.content.slice(_0x2abd5.length).trim().split(/\_0x151f7+/).filter(Boolean); try { _0x22554.execute.call(_0x2121d, _0x19ed3, _0x2bf0c); } catch (err) { _0x1b20a(`Plugin[${_0x2121d.name}] prefixCommand[${_0x22554.name}]`, err); } return; } } } } for (const _0x27230 of _0x25ef9()) _0x1d878(_0x27230, _0x64625(103), _0x19ed3); }); Client.prototype.on.call(bot, _0x64625(18), (oldMsg, newMsg) => { for (const _0x27230 of _0x25ef9()) _0x1d878(_0x27230, _0x64625(104), oldMsg, newMsg); }); Client.prototype.on.call(bot, _0x64625(17), (_0x19ed3) => { for (const _0x27230 of _0x25ef9()) _0x1d878(_0x27230, _0x64625(105), _0x19ed3); }); Client.prototype.on.call(bot, _0x64625(27), (member) => { for (const _0x27230 of _0x25ef9()) _0x1d878(_0x27230, _0x64625(106), member); }); Client.prototype.on.call(bot, _0x64625(28), (member) => { for (const _0x27230 of _0x25ef9()) _0x1d878(_0x27230, _0x64625(107), member); }); Client.prototype.on.call(bot, _0x64625(29), (oldMember, newMember) => { for (const _0x27230 of _0x25ef9()) _0x1d878(_0x27230, _0x64625(108), oldMember, newMember); }); Client.prototype.on.call(bot, _0x64625(46), (interaction) => { for (const _0x27230 of _0x25ef9()) { if (typeof _0x27230.interactionMiddleware === _0x64625(97)) { try { if (_0x27230.interactionMiddleware(interaction) === false) return; } catch (err) { _0x1b20a(`Plugin[${_0x27230.name}]#interactionMiddleware`, err); } } } if (interaction.isChatInputCommand()) { for (const { _0x2121d, _0x22554 } of bot._pluginSlashCommands) { if (_0x22554.name === interaction.commandName) { try { _0x22554.execute.call(_0x2121d, interaction); } catch (err) { _0x1b20a(`Plugin[${_0x2121d.name}] command[${_0x22554.name}]`, err); } } } } for (const _0x27230 of _0x25ef9()) { _0x1d878(_0x27230, _0x64625(109), interaction); if (interaction.isChatInputCommand()) _0x1d878(_0x27230, _0x64625(110), interaction); if (interaction.isButton()) _0x1d878(_0x27230, _0x64625(111), interaction); if (interaction.isStringSelectMenu()) _0x1d878(_0x27230, _0x64625(112), interaction); if (interaction.isModalSubmit()) _0x1d878(_0x27230, _0x64625(113), interaction); } }); Client.prototype.on.call(bot, _0x64625(34), (guild) => { for (const _0x27230 of _0x25ef9()) _0x1d878(_0x27230, _0x64625(114), guild); }); Client.prototype.on.call(bot, _0x64625(35), (guild) => { for (const _0x27230 of _0x25ef9()) _0x1d878(_0x27230, _0x64625(115), guild); }); Client.prototype.on.call(bot, _0x64625(47), (oldState, newState) => { for (const _0x27230 of _0x25ef9()) _0x1d878(_0x27230, _0x64625(116), oldState, newState); }); Client.prototype.on.call(bot, _0x64625(40), (role) => { for (const _0x27230 of _0x25ef9()) _0x1d878(_0x27230, _0x64625(117), role); }); Client.prototype.on.call(bot, _0x64625(41), (role) => { for (const _0x27230 of _0x25ef9()) _0x1d878(_0x27230, _0x64625(118), role); }); Client.prototype.on.call(bot, _0x64625(43), (_0x59936) => { for (const _0x27230 of _0x25ef9()) _0x1d878(_0x27230, _0x64625(119), _0x59936); }); Client.prototype.on.call(bot, _0x64625(44), (_0x59936) => { for (const _0x27230 of _0x25ef9()) _0x1d878(_0x27230, _0x64625(120), _0x59936); }); Client.prototype.on.call(bot, _0x64625(93), (error) => { for (const _0x27230 of _0x25ef9()) _0x1d878(_0x27230, _0x64625(121), error); }); Client.prototype.once.call(bot, _0x64625(122), () => { for (const { _0x2388b } of bot._pluginTasks) { if (_0x2388b._intervalId) clearInterval(_0x2388b._intervalId); } for (const _0x27230 of _0x25ef9()) _0x1d878(_0x27230, _0x64625(123)); }); } const _0x2d243 = new Set([_0x64625(124), _0x64625(125), _0x64625(126), _0x64625(127)]); const _0x2e57a = { playing: ActivityType.Playing, listening: ActivityType.Listening, watching: ActivityType.Watching, competing: ActivityType.Competing, streaming: ActivityType.Streaming, custom: ActivityType.Custom }; class Bot extends Client { constructor(options = {}) { const intents = options.intents === _0x64625(128) ? Object.values(GatewayIntentBits) : options.intents; const partials = options.partials === _0x64625(128) ? Object.values(Partials) : options.partials; const allowedMentions = options.allowedMentions || { parse: [_0x64625(129), _0x64625(130), _0x64625(131)], repliedUser: true }; super({ intents, partials, allowedMentions }); this.owners = options.owners || []; this.prefix = options.prefix || '!'; this.plugin = {}; this._pluginTasks = []; this._pluginPrefixCommands = []; this._pluginSlashCommands = []; this._rotationInterval = null; if (Array.isArray(options.plugins) && options.plugins.length > 0) { _0x1ebaf(this, options.plugins); } } async start(token) { try { this.rest = new REST({ version: _0x64625(132) }).setToken(token); _0xf1e4 = this; await this.login(token); } catch (err) { _0x1b20a(_0x64625(133), err, true); } } isOwner(userId) { return this.owners.includes(String(userId)); } async getChannel(id) { try { return this.channels.cache.get(id) ?? await this.channels.fetch(id); } catch (err) { _0x1b20a(_0x64625(134), err); return null; } } on(event, listener) { return super.on(_0x1c541[event] ?? event, listener); } once(event, listener) { return super.once(_0x1c541[event] ?? event, listener); } waitFor(event, filter = () => true, timeout = (0x2710+0x2710+0x2710)) { return new Promise((resolve, reject) => { const _0x2f8b1 = setTimeout(() => { reject(new Error(`[discord.simplified.js] waitFor timed out on "${event}"`)); }, timeout); const _0x30be8 = (...args) => { if (!filter(...args)) return; clearTimeout(_0x2f8b1); super.off(_0x1c541[event] ?? event, _0x30be8); resolve(_0x2bf0c.length === 1 ? _0x2bf0c[0] : _0x2bf0c); }; super.on(_0x1c541[event] ?? event, _0x30be8); }); } setPresence(options = {}) { const _0x31f1f = options.status || _0x64625(124); const type = options.type || _0x64625(135); const text = options.text || ''; const url = options.url; if (!_0x2d243.has(_0x31f1f)) { _0x1b20a(_0x64625(136), new Error(`Invalid status "${_0x31f1f}". Must be one of: online, idle, dnd, invisible`)); return this; } const _0x33256 = _0x2e57a[type]; if (_0x33256 === undefined) { _0x1b20a(_0x64625(136), new Error(`Invalid type "${type}". Must be one of: playing, listening, watching, competing, streaming, custom`)); return this; } const _0x3458d = { name: text, type: _0x33256 }; if (type === _0x64625(137) && url) _0x3458d.url = url; this.user?.setPresence({ _0x31f1f, activities: [_0x3458d] }); return this; } rotatePresence(presenceArray, intervalMs) { if (this._rotationInterval) clearInterval(this._rotationInterval); let _0x358c4 = 0; this.setPresence(presenceArray[_0x358c4]); this._rotationInterval = setInterval(() => { _0x358c4 = (_0x358c4 + 1) % presenceArray.length; this.setPresence(presenceArray[_0x358c4]); }, intervalMs); return this; } stopRotation() { if (this._rotationInterval) { clearInterval(this._rotationInterval); this._rotationInterval = null; } return this; } } (function _0x36bfb() { const _0x37f32 = Message.prototype; const _0x39269 = Message.prototype.edit; _0x37f32.reply = function (data) { if (typeof data === _0x64625(98)) { return this.channel.send({ content: data, flags: MessageFlags.SuppressNotifications }); } const { text, ping = false, ...rest } = data; return this.channel.send({ content: text, allowedMentions: ping ? undefined : { users: [] }, flags: ping ? undefined : MessageFlags.SuppressNotifications, ...rest }); }; _0x37f32.edit = function (data) { return _0x39269.call(this, typeof data === _0x64625(98) ? { content: data } : data); }; _0x37f32.deleteSafe = function () { if (this.deletable) return this.delete(); }; _0x37f32.reactSafe = function (emoji) { if (this.reactable) return this.react(emoji); }; _0x37f32.ping = function () { return this.reply({ text: `<@${this.author.id}>`, ping: true }); }; _0x37f32.collect = function ({ from, time = (0x2710+0x2710+0x2710), filter, onMessage, onEnd } = {}) { const _0x3a5a0 = filter ?? (from ? (_0x13ec0 => _0x13ec0.author.id === from) : () => true); const _0x3b8d7 = this.channel.createMessageCollector({ filter: _0x3a5a0, time }); if (onMessage) _0x3b8d7.on(_0x64625(138), onMessage); if (onEnd) _0x3b8d7.on(_0x64625(139), onEnd); return _0x3b8d7; }; _0x37f32.awaitReply = function (filter = () => true, time = (0x2710+0x2710+0x2710)) { return this.channel.awaitMessages({ filter, max: 1, time, errors: [_0x64625(140)] }) .then(collected => collected.first()); }; _0x37f32.awaitComponent = function (options = {}) { return _0x49f6b(this, options); }; _0x37f32.collectComponents = function (options = {}) { return _0x4d910(this, options); }; })(); (function _0x3cc0e() { User.prototype.dm = function (data) { const _0x3df45 = typeof data === _0x64625(98) ? { content: data } : data; return this.createDM() .then(ch => ch.send(_0x3df45)) .catch(err => _0x1b20a(_0x64625(141), err)); }; })(); (function _0x3f27c() { const _0x37f32 = GuildMember.prototype; _0x37f32.hasRole = function (roleId) { return this.roles.cache.has(roleId); }; _0x37f32.can = function (perm) { try { const _0x405b3 = typeof perm === _0x64625(98) ? (PermissionFlagsBits[perm] ?? PermissionFlagsBits[perm.charAt(0).toUpperCase() + perm.slice(1)]) : perm; if (!_0x405b3) _0x1b20a(_0x64625(142), new Error(`Unknown permission: "${perm}"`)); return this.permissions.has(_0x405b3); } catch (err) { _0x1b20a(_0x64625(142), err); return false; } }; _0x37f32.addRole = function (roleId, reason) { return this.roles.add(roleId, reason).catch(err => _0x1b20a(_0x64625(143), err)); }; _0x37f32.removeRole = function (roleId, reason) { return this.roles.remove(roleId, reason).catch(err => _0x1b20a(_0x64625(144), err)); }; _0x37f32.timeout = function (minutes, reason) { const _0x418ea = minutes ? Date.now() + minutes * (0x14+0x14+0x14) : null; return this.disableCommunicationUntil(_0x418ea, reason).catch(err => _0x1b20a(_0x64625(145), err)); }; })(); (function _0x42c21() { const _0x37f32 = Guild.prototype; _0x37f32.findMember = function (query) { if (!query) return null; const _0x43f58 = String(query).toLowerCase(); return this.members.cache.get(query) ?? this.members.cache.find(_0x13ec0 => _0x13ec0.user.username.toLowerCase() === _0x43f58 || _0x13ec0.nickname?.toLowerCase() === _0x43f58 || _0x13ec0.displayName.toLowerCase() === _0x43f58 ) ?? null; }; _0x37f32.findRole = function (query) { if (!query) return null; const _0x43f58 = String(query).toLowerCase(); return this.roles.cache.get(query) ?? this.roles.cache.find(r => r.name.toLowerCase() === _0x43f58) ?? null; }; _0x37f32.findChannel = function (query) { if (!query) return null; const _0x43f58 = String(query).toLowerCase(); return this.channels.cache.get(query) ?? this.channels.cache.find(c => c.name?.toLowerCase() === _0x43f58) ?? null; }; })(); (function _0x4528f() { const _0x37f32 = BaseGuildTextChannel.prototype; _0x37f32.purge = function (amount = (0x3+0x3+0x4)) { return this.bulkDelete(amount, true).catch(err => _0x1b20a(_0x64625(146), err)); }; _0x37f32.sendEmbed = function (embed) { try { return this.send({ embeds: Array.isArray(embed) ? embed : [embed] }); } catch (err) { _0x1b20a(_0x64625(147), err); } }; _0x37f32.sendButtons = function (content, ...rows) { try { const _0x3df45 = typeof content === _0x64625(98) ? { content } : { ...content }; _0x3df45.components = rows; return this.send(_0x3df45); } catch (err) { _0x1b20a(_0x64625(148), err); } }; })(); (function _0x465c6() { const _0x37f32 = BaseInteraction.prototype; _0x37f32.ok = function (data, ephemeral = false) { try { const _0x3df45 = typeof data === _0x64625(98) ? { content: data } : { ...data }; if (ephemeral) _0x3df45.flags = MessageFlags.Ephemeral; if (this.replied || this.deferred) return this.editReply(_0x3df45); return this.reply(_0x3df45); } catch (err) { _0x1b20a(_0x64625(149), err); } }; _0x37f32.fail = function (data) { try { const _0x3df45 = typeof data === _0x64625(98) ? { content: data } : { ...data }; _0x3df45.flags = MessageFlags.Ephemeral; if (this.replied || this.deferred) return this.editReply(_0x3df45); return this.reply(_0x3df45); } catch (err) { _0x1b20a(_0x64625(150), err); } }; _0x37f32.private = function (data) { try { const _0x3df45 = typeof data === _0x64625(98) ? { content: data } : { ...data }; _0x3df45.flags = MessageFlags.Ephemeral; if (this.replied || this.deferred) return this.editReply(_0x3df45); return this.reply(_0x3df45); } catch (err) { _0x1b20a(_0x64625(151), err); } }; _0x37f32.think = function (ephemeral = false) { return this.deferReply({ ephemeral }).catch(err => _0x1b20a(_0x64625(152), err)); }; _0x37f32.refresh = function (data) { try { const _0x3df45 = typeof data === _0x64625(98) ? { content: data } : { ...data }; if (this.replied || this.deferred) return this.editReply(_0x3df45); return this.reply(_0x3df45); } catch (err) { _0x1b20a(_0x64625(153), err); } }; _0x37f32.awaitComponent = function (options = {}) { return _0x49f6b(this.message ?? this, options); }; _0x37f32.collectComponents = function (options = {}) { return _0x4d910(this.message ?? this, options); }; })(); const _0x478fd = { button: ComponentType.Button, select: ComponentType.StringSelect, modal: null }; function _0x48c34(options) { const { type, id, filter, user } = options; return (_0x358c4) => { if (type === _0x64625(154) && !_0x358c4.isButton()) return false; if (type === _0x64625(155) && !_0x358c4.isStringSelectMenu()) return false; if (type === _0x64625(156) && !_0x358c4.isModalSubmit()) return false; if (id && _0x358c4.customId !== id) return false; if (user && _0x358c4.user?.id !== String(user)) return false; if (filter && !filter(_0x358c4)) return false; return true; }; } function _0x49f6b(target, options = {}) { const { type = _0x64625(154), time = (0x2710+0x2710+0x2710) } = options; if (!_0x478fd.hasOwnProperty(type)) { _0x1b20a(_0x64625(157), new Error(`Invalid type "${type}". Must be one of: button, select, modal`), true); } const _0x3a5a0 = _0x48c34(options); return new Promise((resolve, reject) => { const _0x2f8b1 = setTimeout(() => { const _0x4b2a2 = Math.round(time / (0x14d+0x14d+0x14e)); log.debug(`awaitComponent timed out after ${_0x4b2a2}s waiting for a ${type} interaction`); reject(new Error(`awaitComponent timed out after ${_0x4b2a2}s waiting for a ${type} interaction`)); }, time); const _0x4c5d9 = (_0x358c4) => { if (!_0x3a5a0(_0x358c4)) return; clearTimeout(_0x2f8b1); target.client?.removeListener(_0x64625(46), _0x4c5d9); resolve(_0x358c4); }; (target.client ?? _0xf1e4)?.on(_0x64625(46), _0x4c5d9); }); } function _0x4d910(target, options = {}) { const { type = _0x64625(154), time = (0x2710+0x2710+0x2710), max, onCollect, onEnd } = options; if (!_0x478fd.hasOwnProperty(type)) { _0x1b20a(_0x64625(158), new Error(`Invalid type "${type}". Must be one of: button, select`), true); } const _0x3a5a0 = _0x48c34(options); const _0x4ec47 = { filter: _0x3a5a0, time }; if (max !== undefined) _0x4ec47.max = max; const _0x3b8d7 = target.createMessageComponentCollector ? target.createMessageComponentCollector(_0x4ec47) : target.channel?.createMessageComponentCollector(_0x4ec47); if (onCollect) _0x3b8d7.on(_0x64625(138), onCollect); if (onEnd) _0x3b8d7.on(_0x64625(139), onEnd); return _0x3b8d7; } class EmbedBuilder extends DjsEmbedBuilder { constructor(data) { super(data); } title(v) { this.setTitle(String(v)); return this; } addTitle(v) { this.setTitle(String(v)); return this; } description(v) { this.setDescription(String(v)); return this; } addDescription(v) { this.setDescription(String(v)); return this; } color(v) { this.setColor(v); return this; } addColor(v) { this.setColor(v); return this; } thumbnail(url) { this.setThumbnail(url); return this; } addThumbnail(url) { this.setThumbnail(url); return this; } image(url) { this.setImage(url); return this; } addImage(url) { this.setImage(url); return this; } author(name, iconURL, url) { this.setAuthor({ name, iconURL, url }); return this; } addAuthor(name, iconURL, url) { this.setAuthor({ name, iconURL, url }); return this; } footer(text, iconURL) { this.setFooter({ text, iconURL }); return this; } addFooter(text, iconURL) { this.setFooter({ text, iconURL }); return this; } field(name, value, inline = false) { this.addFields({ name: String(name), value: String(value), inline }); return this; } addField(name, value, inline = false) { this.addFields({ name: String(name), value: String(value), inline }); return this; } fields(arr = []) { this.addFields(arr.map(f => ({ name: String(f.name), value: String(f.value), inline: Boolean(f.inline) }))); return this; } timestamp(v = Date.now()) { this.setTimestamp(v); return this; } addTime(v = Date.now()) { this.setTimestamp(v); return this; } } const _0x4ff7e = { blue: ButtonStyle.Primary, primary: ButtonStyle.Primary, green: ButtonStyle.Success, success: ButtonStyle.Success, red: ButtonStyle.Danger, danger: ButtonStyle.Danger, gray: ButtonStyle.Secondary, grey: ButtonStyle.Secondary, secondary: ButtonStyle.Secondary, link: ButtonStyle.Link }; class Button extends DjsButtonBuilder { constructor(data) { super(data); } label(v) { this.setLabel(String(v)); return this; } id(v) { this.setCustomId(String(v)); return this; } url(v) { this.setURL(String(v)); return this; } emoji(v) { this.setEmoji(v); return this; } disabled(v=true) { this.setDisabled(v); return this; } style(v) { if (typeof v === _0x64625(98)) this.setStyle(_0x4ff7e[v.toLowerCase()] ?? ButtonStyle[v]); else this.setStyle(v); return this; } } class Row extends DjsActionRowBuilder { constructor(data) { super(data); } add(component) { this.addComponents(component); return this; } components(arr = []) { this.addComponents(arr); return this; } } class Select extends StringSelectMenuBuilder { id(_0x358c4) { return super.setCustomId(_0x358c4); } placeholder(t) { return super.setPlaceholder(t); } min(v) { return super.setMinValues(v); } max(v) { return super.setMaxValues(v); } option(l, v, _0x11852, e) { return super.addOptions({ label: l, value: v, description: _0x11852, emoji: e }); } } class Thumbnail extends ThumbnailBuilder { constructor(data) { super(data); } url(v) { if (v === undefined || v === null) _0x1b20a(_0x64625(159), new Error(_0x64625(160)), true); this.setMedia({ url: String(v) }); return this; } description(v) { if (v === undefined || v === null) _0x1b20a(_0x64625(161), new Error(_0x64625(162)), true); this.setDescription(String(v)); return this; } } class Section extends SectionBuilder { constructor(data) { super(data); } text(content) { if (content === undefined || content === null) _0x1b20a(_0x64625(163), new Error(_0x64625(164)), true); this.addTextDisplayComponents( typeof content === _0x64625(98) ? new TextDisplayBuilder().setContent(content) : content ); return this; } thumbnail(url) { if (url === undefined || url === null) _0x1b20a(_0x64625(165), new Error(_0x64625(166)), true); this.setAccessory(new ThumbnailBuilder().setMedia({ url: String(url) })); return this; } button(label, style, customId) { if (!label) _0x1b20a(_0x64625(167), new Error(_0x64625(168)), true); if (!customId) _0x1b20a(_0x64625(167), new Error(_0x64625(169)), true); const _0x512b5 = typeof style === _0x64625(98) ? (_0x4ff7e[style.toLowerCase()] ?? ButtonStyle[style]) : style; this.setAccessory(new DjsButtonBuilder().setLabel(String(label)).setStyle(_0x512b5).setCustomId(String(customId))); return this; } } class FileComponent extends FileBuilder { constructor(data) { super(data); } url(v) { if (v === undefined || v === null) _0x1b20a(_0x64625(170), new Error(_0x64625(160)), true); this.setURL(String(v)); return this; } } const _0x525ec = { short: TextInputStyle.Short, paragraph: TextInputStyle.Paragraph, long: TextInputStyle.Paragraph }; class Modal extends DjsModalBuilder { constructor() { super(); } id(v) { this.setCustomId(String(v)); return this; } title(v) { this.setTitle(String(v)); return this; } field(label, id, style = _0x64625(171), options = {}) { try { const _0x53923 = new TextInputBuilder() .setCustomId(String(id)) .setLabel(String(label)) .setStyle(_0x525ec[style.toLowerCase()] ?? TextInputStyle.Short); if (options.placeholder) _0x53923.setPlaceholder(options.placeholder); if (options.required !== undefined) _0x53923.setRequired(options.required); if (options.min !== undefined) _0x53923.setMinLength(options.min); if (options.max !== undefined) _0x53923.setMaxLength(options.max); if (options.value !== undefined) _0x53923.setValue(options.value); this.addComponents(new DjsActionRowBuilder().addComponents(_0x53923)); return this; } catch (err) { _0x1b20a(_0x64625(172), err); return this; } } } class ComponentBuilder extends ContainerBuilder { constructor() { super(); } addText(_0x53923) { this.addTextDisplayComponents( typeof _0x53923 === _0x64625(98) ? new TextDisplayBuilder().setContent(_0x53923) : _0x53923 ); return this; } addSeparator(spacing = _0x64625(173)) { const _0x54c5a = { Small: SeparatorSpacingSize.Small, Large: SeparatorSpacingSize.Large }; this.addSeparatorComponents(new SeparatorBuilder().setSpacing(_0x54c5a[spacing] ?? SeparatorSpacingSize.Small)); return this; } addButtons(...buttons) { this.addActionRowComponents(new DjsActionRowBuilder().addComponents(buttons)); return this; } addSelect(select) { this.addActionRowComponents(new DjsActionRowBuilder().addComponents(select)); return this; } addMedia(items = []) { const _0x55f91 = new MediaGalleryBuilder(); for (const _0x572c8 of items) { _0x55f91.addItems(typeof _0x572c8 === _0x64625(98) ? new MediaGalleryItemBuilder().setURL(_0x572c8) : _0x572c8); } this.addMediaGalleryComponents(_0x55f91); return this; } addSection(section) { this.addSectionComponents(section); return this; } addFile(file) { this.addFileComponents(typeof file === _0x64625(98) ? new FileBuilder().setURL(file) : file); return this; } } const text = content => new TextDisplayBuilder().setContent(content); class VoiceChannelStatus { static async set(statusText, id) { await _0x585ff(statusText, id); } static async remove(id) { await _0x585ff(null, id); } } async function _0x585ff(statusText, id) { if (!_0xf1e4) return _0x1b20a(_0x64625(174), new Error(_0x64625(175))); try { const _0x59936 = await _0xf1e4.channels.fetch(id); if (!_0x59936) return _0x1b20a(_0x64625(174), new Error(`Invalid channel ID: "${id}"`)); if (_0x59936.type !== ChannelType.GuildVoice) return _0x1b20a(_0x64625(174), new Error(`Channel "${id}" is not a voice channel.`)); await _0xf1e4.rest.put(`/channels/${_0x59936.id}/voice-status`, { body: { text: statusText } }); } catch (err) { _0x1b20a(_0x64625(174), err); } } async function sendWebhook(url, data) { try { const _0x5ac6d = new WebhookClient({ url }); const _0x3df45 = typeof data === _0x64625(98) ? { content: data } : data; return await _0x5ac6d.send(_0x3df45); } catch (err) { _0x1b20a(_0x64625(176), err); } } const _0x5bfa4 = { short: 't', long: 'T', date: 'd', longdate: 'D', full: 'f', longfull: 'F', relative: 'R' }; function time(date, style = _0x64625(177)) { try { const _0x11852 = date instanceof Date ? date : new Date(date); if (isNaN(_0x11852.getTime())) return _0x1b20a(_0x64625(178), new Error(`Invalid date value: "${date}"`)) || ''; const _0x5d2db = Math.floor(_0x11852.getTime() / (0x14d+0x14d+0x14e)); const _0x151f7 = _0x5bfa4[style] ?? style; return `<t:${_0x5d2db}:${_0x151f7}>`; } catch (err) { _0x1b20a(_0x64625(178), err); return ''; } } const Colors = { blurple: _0x64625(179), white: _0x64625(180), black: _0x64625(181), dark: _0x64625(182), gray: _0x64625(183), grey: _0x64625(183), red: _0x64625(184), green: _0x64625(185), yellow: _0x64625(186), blue: _0x64625(187), orange: _0x64625(188), purple: _0x64625(189), pink: _0x64625(190), gold: _0x64625(191), teal: _0x64625(192), cyan: _0x64625(193), navy: _0x64625(194), transparent: _0x64625(182) }; class Cooldown { constructor(_0x60c80) { if (typeof _0x60c80 !== _0x64625(195) || _0x60c80 <= 0) { _0x1b20a(_0x64625(196), new Error(`Invalid cooldown duration: "${_0x60c80}". Must be a positive number (ms).`), true); } this._ms = _0x60c80; this._map = new Map(); } _0x4c5d9(id) { const _0x5e612 = this._map.get(String(id)); if (!_0x5e612) return false; if (Date.now() < _0x5e612) return true; this._map.delete(String(id)); return false; } set(id) { this._map.set(String(id), Date.now() + this._ms); } clear(id) { this._map.delete(String(id)); } remaining(id) { const _0x5e612 = this._map.get(String(id)); if (!_0x5e612) return 0; const _0x5f949 = _0x5e612 - Date.now(); return _0x5f949 > 0 ? _0x5f949 : 0; } remainingText(id) { const _0x60c80 = this.remaining(id); if (!_0x60c80) return _0x64625(197); const _0x151f7 = Math.ceil(_0x60c80 / (0x14d+0x14d+0x14e)); if (_0x151f7 < (0x14+0x14+0x14)) return `${_0x151f7}s`; const _0x13ec0 = Math.floor(_0x151f7 / (0x14+0x14+0x14)); const _0x61fb7 = _0x151f7 % (0x14+0x14+0x14); return _0x61fb7 ? `${_0x13ec0}m ${_0x61fb7}s` : `${_0x13ec0}m`; } reset() { this._map.clear(); } } const Presence = { _0x2e57a, _0x2d243 }; const Status = Presence; MessageFlags.V2 = MessageFlags.IsComponentsV2; const I = GatewayIntentBits; const Intents = GatewayIntentBits; const IntentBits = GatewayIntentBits; const Flags = MessageFlags; const MessageFlag = MessageFlags; const MsgFlags = MessageFlags; const Perms = PermissionFlagsBits; const Permissions = PermissionFlagsBits; const PermissionBits = PermissionFlagsBits; const Channels = ChannelType; const ChannelTypes = ChannelType; const Components = ComponentType; const ComponentTypes = ComponentType; const Buttons = ButtonStyle; const ButtonStyles = ButtonStyle; const Inputs = TextInputStyle; const InputStyles = TextInputStyle; const Interactions = InteractionType; const InteractionTypes = InteractionType; const WebClient = WebhookClient; const Web = WebhookClient; const Webhook = WebhookClient; const WebhookClientClass = WebhookClient; module.exports = { Bot, EmbedBuilder, Embed: EmbedBuilder, Button, Row, Select, Modal, ComponentBuilder, text, TextDisplayBuilder, SeparatorBuilder, Section, Thumbnail, FileComponent, File: FileComponent, ActionRowBuilder: DjsActionRowBuilder, ButtonBuilder: DjsButtonBuilder, StringSelectMenuBuilder, MediaGalleryBuilder, MediaGalleryItemBuilder, SectionBuilder, ThumbnailBuilder, FileBuilder, VoiceChannelStatus, VCS: VoiceChannelStatus, VCStatus: VoiceChannelStatus, Logger, Log: Logger, log, Presence, Status, sendWebhook, time, Colors, Cooldown, I, Intents, IntentBits, Flags, MessageFlag, MsgFlags, Perms, Permissions, PermissionBits, Channels, ChannelTypes, Components, ComponentTypes, Buttons, ButtonStyles, Inputs, InputStyles, Interactions, InteractionTypes, WebClient, Web, Webhook, WebhookClient, WebhookClientClass };
1
+ var _0x7c671=["\x2a\x2c\x3a\x7f\x2c\x2b\x2d\x36\x3c\x2b","\x3b\x36\x2c\x3c\x30\x2d\x3b\x71\x35\x2c","\x2a\x2b\x36\x33","\x03\x27\x6e\x3d\x04\x6f\x32","\x03\x27\x6e\x3d\x04\x66\x68\x32","\x03\x27\x6e\x3d\x04\x66\x6f\x32","\x03\x27\x6e\x3d\x04\x66\x69\x32","\x03\x27\x6e\x3d\x04\x66\x6c\x32","\x03\x27\x6e\x3d\x04\x66\x6e\x32","\x03\x27\x6e\x3d\x04\x66\x6d\x32","\x3b\x36\x2c\x33\x3e\x31\x38","\x16\x11\x19\x10","\x08\x1e\x0d\x11","\x1a\x0d\x0d\x10\x0d","\x0c\x0a\x1c\x1c\x1a\x0c\x0c","\x1b\x1a\x1d\x0a\x18","\x31\x2a\x32\x3d\x3a\x2d","\x03\x31","\x32\x3a\x2c\x2c\x3e\x38\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x32\x3a\x2c\x2c\x3e\x38\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x32\x3a\x2c\x2c\x3e\x38\x3a\x1b\x3a\x33\x3a\x2b\x3a\x1d\x2a\x33\x34","\x3c\x37\x3e\x31\x31\x3a\x33\x0f\x36\x31\x2c\x0a\x2f\x3b\x3e\x2b\x3a","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0d\x3a\x3e\x3c\x2b\x36\x30\x31\x1e\x3b\x3b","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0d\x3a\x3e\x3c\x2b\x36\x30\x31\x0d\x3a\x32\x30\x29\x3a","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0d\x3a\x3e\x3c\x2b\x36\x30\x31\x0d\x3a\x32\x30\x29\x3a\x1e\x33\x33","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0d\x3a\x3e\x3c\x2b\x36\x30\x31\x0d\x3a\x32\x30\x29\x3a\x1a\x32\x30\x35\x36","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0f\x30\x33\x33\x09\x30\x2b\x3a\x1e\x3b\x3b","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0f\x30\x33\x33\x09\x30\x2b\x3a\x0d\x3a\x32\x30\x29\x3a","\x38\x2a\x36\x33\x3b\x12\x3a\x32\x3d\x3a\x2d\x1e\x3b\x3b","\x38\x2a\x36\x33\x3b\x12\x3a\x32\x3d\x3a\x2d\x0d\x3a\x32\x30\x29\x3a","\x38\x2a\x36\x33\x3b\x12\x3a\x32\x3d\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x12\x3a\x32\x3d\x3a\x2d\x1e\x29\x3e\x36\x33\x3e\x3d\x33\x3a","\x38\x2a\x36\x33\x3b\x12\x3a\x32\x3d\x3a\x2d\x2c\x1c\x37\x2a\x31\x34","\x38\x2a\x36\x33\x3b\x1d\x3e\x31\x1e\x3b\x3b","\x38\x2a\x36\x33\x3b\x1d\x3e\x31\x0d\x3a\x32\x30\x29\x3a","\x38\x2a\x36\x33\x3b\x1c\x2d\x3a\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x1b\x3a\x33\x3a\x2b\x3a","\x38\x2a\x36\x33\x3b\x0a\x2f\x3b\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x1e\x29\x3e\x36\x33\x3e\x3d\x33\x3a","\x38\x2a\x36\x33\x3b\x0a\x31\x3e\x29\x3e\x36\x33\x3e\x3d\x33\x3a","\x38\x2a\x36\x33\x3b\x1e\x2a\x3b\x36\x2b\x13\x30\x38\x1a\x31\x2b\x2d\x26\x1c\x2d\x3a\x3e\x2b\x3a","\x2d\x30\x33\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x2d\x30\x33\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x2d\x30\x33\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x3c\x37\x3e\x31\x31\x3a\x33\x1c\x2d\x3a\x3e\x2b\x3a","\x3c\x37\x3e\x31\x31\x3a\x33\x1b\x3a\x33\x3a\x2b\x3a","\x3c\x37\x3e\x31\x31\x3a\x33\x0a\x2f\x3b\x3e\x2b\x3a","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x1c\x2d\x3a\x3e\x2b\x3a","\x29\x30\x36\x3c\x3a\x0c\x2b\x3e\x2b\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x29\x30\x36\x3c\x3a\x0c\x3a\x2d\x29\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x29\x30\x36\x3c\x3a\x1c\x37\x3e\x31\x31\x3a\x33\x1a\x39\x39\x3a\x3c\x2b\x0c\x3a\x31\x3b","\x2b\x26\x2f\x36\x31\x38\x0c\x2b\x3e\x2d\x2b","\x2f\x2d\x3a\x2c\x3a\x31\x3c\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x2a\x2c\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x28\x3a\x3d\x37\x30\x30\x34\x2c\x0a\x2f\x3b\x3e\x2b\x3a","\x36\x31\x29\x36\x2b\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x36\x31\x29\x36\x2b\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x1c\x2d\x3a\x3e\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x1b\x3a\x33\x3a\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x0a\x2f\x3b\x3e\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x12\x3a\x32\x3d\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x12\x3a\x32\x3d\x3a\x2d\x2c\x0a\x2f\x3b\x3e\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x13\x36\x2c\x2b\x0c\x26\x31\x3c","\x2c\x2b\x3e\x38\x3a\x16\x31\x2c\x2b\x3e\x31\x3c\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x2c\x2b\x3e\x38\x3a\x16\x31\x2c\x2b\x3e\x31\x3c\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x2c\x2b\x3e\x38\x3a\x16\x31\x2c\x2b\x3e\x31\x3c\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x3e\x2a\x2b\x30\x12\x30\x3b\x3a\x2d\x3e\x2b\x36\x30\x31\x1e\x3c\x2b\x36\x30\x31\x1a\x27\x3a\x3c\x2a\x2b\x36\x30\x31","\x3e\x2a\x2b\x30\x12\x30\x3b\x3a\x2d\x3e\x2b\x36\x30\x31\x0d\x2a\x33\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x3e\x2a\x2b\x30\x12\x30\x3b\x3a\x2d\x3e\x2b\x36\x30\x31\x0d\x2a\x33\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x3e\x2a\x2b\x30\x12\x30\x3b\x3a\x2d\x3e\x2b\x36\x30\x31\x0d\x2a\x33\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x3a\x32\x30\x35\x36\x1c\x2d\x3a\x3e\x2b\x3a","\x3a\x32\x30\x35\x36\x1b\x3a\x33\x3a\x2b\x3a","\x3a\x32\x30\x35\x36\x0a\x2f\x3b\x3e\x2b\x3a","\x2c\x2b\x36\x3c\x34\x3a\x2d\x1c\x2d\x3a\x3e\x2b\x3a","\x2c\x2b\x36\x3c\x34\x3a\x2d\x1b\x3a\x33\x3a\x2b\x3a","\x2c\x2b\x36\x3c\x34\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x3c\x37\x3a\x3b\x2a\x33\x3a\x3b\x1a\x29\x3a\x31\x2b\x1c\x2d\x3a\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x3c\x37\x3a\x3b\x2a\x33\x3a\x3b\x1a\x29\x3a\x31\x2b\x1b\x3a\x33\x3a\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x3c\x37\x3a\x3b\x2a\x33\x3a\x3b\x1a\x29\x3a\x31\x2b\x0a\x2f\x3b\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x3c\x37\x3a\x3b\x2a\x33\x3a\x3b\x1a\x29\x3a\x31\x2b\x0a\x2c\x3a\x2d\x1e\x3b\x3b","\x38\x2a\x36\x33\x3b\x0c\x3c\x37\x3a\x3b\x2a\x33\x3a\x3b\x1a\x29\x3a\x31\x2b\x0a\x2c\x3a\x2d\x0d\x3a\x32\x30\x29\x3a","\x38\x2a\x36\x33\x3b\x0c\x30\x2a\x31\x3b\x3d\x30\x3e\x2d\x3b\x0c\x30\x2a\x31\x3b\x1c\x2d\x3a\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x30\x2a\x31\x3b\x3d\x30\x3e\x2d\x3b\x0c\x30\x2a\x31\x3b\x1b\x3a\x33\x3a\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x30\x2a\x31\x3b\x3d\x30\x3e\x2d\x3b\x0c\x30\x2a\x31\x3b\x0a\x2f\x3b\x3e\x2b\x3a","\x2c\x2a\x3d\x2c\x3c\x2d\x36\x2f\x2b\x36\x30\x31\x1c\x2d\x3a\x3e\x2b\x3a","\x2c\x2a\x3d\x2c\x3c\x2d\x36\x2f\x2b\x36\x30\x31\x1b\x3a\x33\x3a\x2b\x3a","\x2c\x2a\x3d\x2c\x3c\x2d\x36\x2f\x2b\x36\x30\x31\x0a\x2f\x3b\x3e\x2b\x3a","\x2d\x3a\x3e\x3b\x26","\x3c\x33\x36\x3a\x31\x2b\x0d\x3a\x3e\x3b\x26","\x2c\x37\x3e\x2d\x3b\x0d\x3a\x3e\x3b\x26","\x2c\x37\x3e\x2d\x3b\x1b\x36\x2c\x3c\x30\x31\x31\x3a\x3c\x2b","\x2c\x37\x3e\x2d\x3b\x1a\x2d\x2d\x30\x2d","\x2c\x37\x3e\x2d\x3b\x0d\x3a\x3c\x30\x31\x31\x3a\x3c\x2b\x36\x31\x38","\x2c\x37\x3e\x2d\x3b\x0d\x3a\x2c\x2a\x32\x3a","\x3a\x2d\x2d\x30\x2d","\x28\x3e\x2d\x31","\x3b\x3a\x3d\x2a\x38","\x2d\x3e\x28","\x39\x2a\x31\x3c\x2b\x36\x30\x31","\x2c\x2b\x2d\x36\x31\x38","\x0f\x33\x2a\x38\x36\x31","\x1a\x29\x3a\x2d\x26\x7f\x2f\x33\x2a\x38\x36\x31\x7f\x32\x2a\x2c\x2b\x7f\x3a\x27\x2f\x30\x2d\x2b\x7f\x3e\x7f\x7d\x31\x3e\x32\x3a\x7d\x7f\x2c\x2b\x2d\x36\x31\x38\x7f\x39\x36\x3a\x33\x3b\x71","\x0f\x33\x2a\x38\x36\x31\x7f\x2c\x33\x3e\x2c\x37\x7f\x3c\x30\x32\x32\x3e\x31\x3b\x7f\x2d\x3a\x38\x36\x2c\x2b\x2d\x3e\x2b\x36\x30\x31","\x30\x31\x0d\x3a\x3e\x3b\x26","\x30\x31\x12\x3a\x2c\x2c\x3e\x38\x3a","\x30\x31\x12\x3a\x2c\x2c\x3e\x38\x3a\x1a\x3b\x36\x2b","\x30\x31\x12\x3a\x2c\x2c\x3e\x38\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x30\x31\x12\x3a\x32\x3d\x3a\x2d\x15\x30\x36\x31","\x30\x31\x12\x3a\x32\x3d\x3a\x2d\x13\x3a\x3e\x29\x3a","\x30\x31\x12\x3a\x32\x3d\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x30\x31\x16\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31","\x30\x31\x0c\x33\x3e\x2c\x37\x1c\x30\x32\x32\x3e\x31\x3b","\x30\x31\x1d\x2a\x2b\x2b\x30\x31","\x30\x31\x0c\x3a\x33\x3a\x3c\x2b\x12\x3a\x31\x2a","\x30\x31\x12\x30\x3b\x3e\x33","\x30\x31\x18\x2a\x36\x33\x3b\x15\x30\x36\x31","\x30\x31\x18\x2a\x36\x33\x3b\x13\x3a\x3e\x29\x3a","\x30\x31\x09\x30\x36\x3c\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x30\x31\x0d\x30\x33\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x30\x31\x0d\x30\x33\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x30\x31\x1c\x37\x3e\x31\x31\x3a\x33\x1c\x2d\x3a\x3e\x2b\x3a","\x30\x31\x1c\x37\x3e\x31\x31\x3a\x33\x1b\x3a\x33\x3a\x2b\x3a","\x30\x31\x1a\x2d\x2d\x30\x2d","\x3b\x3a\x2c\x2b\x2d\x30\x26","\x30\x31\x1b\x3a\x2c\x2b\x2d\x30\x26","\x30\x31\x33\x36\x31\x3a","\x36\x3b\x33\x3a","\x3b\x31\x3b","\x36\x31\x29\x36\x2c\x36\x3d\x33\x3a","\x3e\x33\x33","\x2a\x2c\x3a\x2d\x2c","\x2d\x30\x33\x3a\x2c","\x3a\x29\x3a\x2d\x26\x30\x31\x3a","\x6e\x6f","\x1d\x30\x2b\x7c\x2c\x2b\x3e\x2d\x2b","\x1d\x30\x2b\x7c\x38\x3a\x2b\x1c\x37\x3e\x31\x31\x3a\x33","\x2f\x33\x3e\x26\x36\x31\x38","\x1d\x30\x2b\x7c\x2c\x3a\x2b\x0f\x2d\x3a\x2c\x3a\x31\x3c\x3a","\x0b\x37\x3a\x7f\x3d\x30\x2b\x7f\x36\x2c\x7f\x31\x30\x2b\x7f\x33\x30\x38\x38\x3a\x3b\x7f\x36\x31\x7f\x26\x3a\x2b\x71\x7f\x1c\x3e\x33\x33\x7f\x2c\x3a\x2b\x0f\x2d\x3a\x2c\x3a\x31\x3c\x3a\x77\x76\x7f\x36\x31\x2c\x36\x3b\x3a\x7f\x2b\x37\x3a\x7f\x2d\x3a\x3e\x3b\x26\x7f\x3a\x29\x3a\x31\x2b\x71","\x3c\x2a\x2c\x2b\x30\x32","\x1c\x2a\x2c\x2b\x30\x32\x7f\x0c\x2b\x3e\x2b\x2a\x2c","\x2c\x2b\x2d\x3a\x3e\x32\x36\x31\x38","\x1d\x30\x2b\x7c\x2d\x30\x2b\x3e\x2b\x3a\x0f\x2d\x3a\x2c\x3a\x31\x3c\x3a","\x2d\x30\x2b\x3e\x2b\x3a\x0f\x2d\x3a\x2c\x3a\x31\x3c\x3a\x77\x76\x7f\x31\x3a\x3a\x3b\x2c\x7f\x3e\x7f\x31\x30\x31\x72\x3a\x32\x2f\x2b\x26\x7f\x3e\x2d\x2d\x3e\x26\x7f\x30\x39\x7f\x2f\x2d\x3a\x2c\x3a\x31\x3c\x3a\x7f\x30\x3d\x35\x3a\x3c\x2b\x2c\x71","\x3c\x30\x33\x33\x3a\x3c\x2b","\x3a\x31\x3b","\x2b\x36\x32\x3a","\x2a\x2c\x3a\x2d\x71\x3b\x32","\x32\x3a\x32\x3d\x3a\x2d\x71\x3c\x3e\x31","\x32\x3a\x32\x3d\x3a\x2d\x71\x3e\x3b\x3b\x0d\x30\x33\x3a","\x32\x3a\x32\x3d\x3a\x2d\x71\x2d\x3a\x32\x30\x29\x3a\x0d\x30\x33\x3a","\x32\x3a\x32\x3d\x3a\x2d\x71\x2b\x36\x32\x3a\x30\x2a\x2b","\x3c\x37\x3e\x31\x31\x3a\x33\x71\x2f\x2a\x2d\x38\x3a","\x3c\x37\x3e\x31\x31\x3a\x33\x71\x2c\x3a\x31\x3b\x1a\x32\x3d\x3a\x3b","\x3c\x37\x3e\x31\x31\x3a\x33\x71\x2c\x3a\x31\x3b\x1d\x2a\x2b\x2b\x30\x31\x2c","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x71\x30\x34","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x71\x39\x3e\x36\x33","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x71\x2f\x2d\x36\x29\x3e\x2b\x3a","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x71\x2b\x37\x36\x31\x34","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x71\x2d\x3a\x39\x2d\x3a\x2c\x37","\x32\x30\x3b\x3e\x33","\x3d\x2a\x2b\x2b\x30\x31","\x2c\x3a\x33\x3a\x3c\x2b","\x3e\x28\x3e\x36\x2b\x1c\x30\x32\x2f\x30\x31\x3a\x31\x2b","\x3c\x30\x33\x33\x3a\x3c\x2b\x1c\x30\x32\x2f\x30\x31\x3a\x31\x2b\x2c","\x16\x31\x29\x3e\x33\x36\x3b\x7f\x2b\x26\x2f\x3a\x7f\x7d\x32\x30\x3b\x3e\x33\x7d\x71\x7f\x12\x2a\x2c\x2b\x7f\x3d\x3a\x7f\x30\x31\x3a\x7f\x30\x39\x65\x7f\x3d\x2a\x2b\x2b\x30\x31\x73\x7f\x2c\x3a\x33\x3a\x3c\x2b","\x0b\x37\x2a\x32\x3d\x31\x3e\x36\x33\x7c\x2a\x2d\x33","\x2a\x2d\x33\x77\x76","\x0b\x37\x2a\x32\x3d\x31\x3e\x36\x33\x7c\x3b\x3a\x2c\x3c\x2d\x36\x2f\x2b\x36\x30\x31","\x3b\x3a\x2c\x3c\x2d\x36\x2f\x2b\x36\x30\x31\x77\x76\x7f\x32\x2a\x2c\x2b\x7f\x3d\x3a\x7f\x3e\x7f\x2c\x2b\x2d\x36\x31\x38\x71","\x2c\x3a\x2b\x0f\x2d\x36\x32\x3e\x2d\x26\x1d\x2a\x2b\x2b\x30\x31\x1e\x3c\x3c\x3a\x2c\x2c\x30\x2d\x26","\x2c\x3a\x2b\x0c\x3a\x3c\x30\x31\x3b\x3e\x2d\x26\x1d\x2a\x2b\x2b\x30\x31\x1e\x3c\x3c\x3a\x2c\x2c\x30\x2d\x26","\x2c\x3a\x2b\x0c\x2a\x3c\x3c\x3a\x2c\x2c\x1d\x2a\x2b\x2b\x30\x31\x1e\x3c\x3c\x3a\x2c\x2c\x30\x2d\x26","\x2c\x3a\x2b\x1b\x3e\x31\x38\x3a\x2d\x1d\x2a\x2b\x2b\x30\x31\x1e\x3c\x3c\x3a\x2c\x2c\x30\x2d\x26","\x2c\x3a\x2b\x13\x36\x31\x34\x1d\x2a\x2b\x2b\x30\x31\x1e\x3c\x3c\x3a\x2c\x2c\x30\x2d\x26","\x0c\x3a\x3c\x2b\x36\x30\x31\x7c\x3d\x2a\x2b\x2b\x30\x31","\x0b\x37\x36\x2c\x7f\x3b\x36\x2c\x3c\x30\x2d\x3b\x71\x35\x2c\x7f\x29\x3a\x2d\x2c\x36\x30\x31\x7f\x3c\x3e\x31\x31\x30\x2b\x7f\x2a\x2c\x3a\x7f\x2b\x37\x3e\x2b\x7f\x3d\x2a\x2b\x2b\x30\x31\x7f\x2c\x2b\x26\x33\x3a\x7f\x3e\x2c\x7f\x3e\x7f\x2c\x3a\x3c\x2b\x36\x30\x31\x7f\x3e\x3c\x3c\x3a\x2c\x2c\x30\x2d\x26\x71","\x0c\x3a\x3c\x2b\x36\x30\x31\x7c\x2b\x3a\x27\x2b","\x2b\x3a\x27\x2b\x77\x76\x7f\x31\x3a\x3a\x3b\x2c\x7f\x3e\x2b\x7f\x33\x3a\x3e\x2c\x2b\x7f\x30\x31\x3a\x7f\x2c\x2b\x2d\x36\x31\x38\x71","\x2b\x3a\x27\x2b\x77\x76\x7f\x2d\x3a\x3c\x3a\x36\x29\x3a\x3b\x7f\x3e\x31\x7f\x3a\x32\x2f\x2b\x26\x7f\x29\x3e\x33\x2a\x3a\x71","\x0c\x3a\x3c\x2b\x36\x30\x31\x7c\x2b\x37\x2a\x32\x3d\x31\x3e\x36\x33","\x2b\x37\x2a\x32\x3d\x31\x3e\x36\x33\x77\x76\x7f\x2a\x2d\x33","\x3d\x2a\x2b\x2b\x30\x31\x77\x76\x7f\x2d\x3a\x2e\x2a\x36\x2d\x3a\x2c\x7f\x3e\x7f\x33\x3e\x3d\x3a\x33\x71","\x1e\x7f\x33\x36\x31\x34\x7f\x3d\x2a\x2b\x2b\x30\x31\x7f\x31\x3a\x3a\x3b\x2c\x7f\x3e\x7f\x0a\x0d\x13\x7f\x3e\x2c\x7f\x2b\x37\x3a\x7f\x2b\x37\x36\x2d\x3b\x7f\x3e\x2d\x38\x2a\x32\x3a\x31\x2b\x71","\x3d\x2a\x2b\x2b\x30\x31\x77\x76\x7f\x2d\x3a\x2e\x2a\x36\x2d\x3a\x2c\x7f\x3e\x7f\x3c\x2a\x2c\x2b\x30\x32\x16\x3b\x7f\x3e\x2c\x7f\x2b\x37\x3a\x7f\x2b\x37\x36\x2d\x3b\x7f\x3e\x2d\x38\x2a\x32\x3a\x31\x2b\x71","\x0c\x3a\x3c\x2b\x36\x30\x31\x7c\x3e\x3c\x3c\x3a\x2c\x2c\x30\x2d\x26","\x3e\x3c\x3c\x3a\x2c\x2c\x30\x2d\x26\x77\x76\x7f\x2b\x3e\x34\x3a\x2c\x7f\x3e\x7f\x0b\x37\x2a\x32\x3d\x31\x3e\x36\x33\x7f\x30\x2d\x7f\x3e\x7f\x1d\x2a\x2b\x2b\x30\x31\x71","\x19\x36\x33\x3a\x1c\x30\x32\x2f\x30\x31\x3a\x31\x2b\x7c\x2a\x2d\x33","\x3e\x2b\x2b\x3e\x3c\x37\x32\x3a\x31\x2b\x65\x70\x70","\x2c\x37\x30\x2d\x2b","\x12\x30\x3b\x3e\x33\x7c\x39\x36\x3a\x33\x3b","\x0c\x32\x3e\x33\x33","\x1c\x30\x32\x2f\x30\x31\x3a\x31\x2b\x1d\x2a\x36\x33\x3b\x3a\x2d\x7c\x3e\x3b\x3b\x1d\x2a\x2b\x2b\x30\x31\x2c","\x1c\x30\x32\x2f\x30\x31\x3a\x31\x2b\x1d\x2a\x36\x33\x3b\x3a\x2d\x7c\x3e\x3b\x3b\x12\x3a\x3b\x36\x3e","\x3e\x3b\x3b\x12\x3a\x3b\x36\x3e\x77\x76\x7f\x2b\x3e\x34\x3a\x2c\x7f\x3e\x31\x7f\x3e\x2d\x2d\x3e\x26\x7f\x30\x39\x7f\x6e\x7f\x2b\x30\x7f\x6e\x6f\x7f\x36\x2b\x3a\x32\x2c\x71","\x1a\x3e\x3c\x37\x7f\x32\x3a\x3b\x36\x3e\x7f\x36\x2b\x3a\x32\x7f\x32\x2a\x2c\x2b\x7f\x3d\x3a\x7f\x3e\x7f\x0a\x0d\x13\x7f\x2c\x2b\x2d\x36\x31\x38\x73\x7f\x24\x7f\x2a\x2d\x33\x73\x7f\x3b\x3a\x2c\x3c\x2d\x36\x2f\x2b\x36\x30\x31\x73\x7f\x2c\x2f\x30\x36\x33\x3a\x2d\x7f\x22\x73\x7f\x30\x2d\x7f\x3e\x7f\x12\x3a\x3b\x36\x3e\x18\x3e\x33\x33\x3a\x2d\x26\x16\x2b\x3a\x32\x1d\x2a\x36\x33\x3b\x3a\x2d\x71","\x1c\x30\x32\x2f\x30\x31\x3a\x31\x2b\x1d\x2a\x36\x33\x3b\x3a\x2d\x7c\x3e\x3b\x3b\x0c\x3a\x3c\x2b\x36\x30\x31","\x3e\x3b\x3b\x0c\x3a\x3c\x2b\x36\x30\x31\x77\x76\x7f\x2b\x3e\x34\x3a\x2c\x7f\x3e\x7f\x0c\x3a\x3c\x2b\x36\x30\x31\x71","\x1c\x30\x32\x2f\x30\x31\x3a\x31\x2b\x1d\x2a\x36\x33\x3b\x3a\x2d\x7c\x3e\x3b\x3b\x19\x36\x33\x3a","\x3e\x3b\x3b\x19\x36\x33\x3a\x77\x76\x7f\x2b\x3e\x34\x3a\x2c\x7f\x3e\x31\x7f\x3e\x2b\x2b\x3e\x3c\x37\x32\x3a\x31\x2b\x65\x70\x70\x7f\x2c\x2b\x2d\x36\x31\x38\x7f\x30\x2d\x7f\x3e\x7f\x19\x36\x33\x3a\x71","\x1c\x30\x32\x2f\x30\x31\x3a\x31\x2b\x1d\x2a\x36\x33\x3b\x3a\x2d\x7c\x3c\x30\x33\x30\x2d","\x09\x30\x36\x3c\x3a\x1c\x37\x3e\x31\x31\x3a\x33\x0c\x2b\x3e\x2b\x2a\x2c","\x1d\x30\x2b\x7c\x2c\x2b\x3e\x2d\x2b\x77\x76\x7f\x37\x3e\x2c\x7f\x31\x30\x2b\x7f\x3d\x3a\x3a\x31\x7f\x3c\x3e\x33\x33\x3a\x3b\x7f\x26\x3a\x2b\x71","\x2c\x3a\x31\x3b\x08\x3a\x3d\x37\x30\x30\x34","\x2d\x3a\x33\x3e\x2b\x36\x29\x3a","\x2b\x36\x32\x3a\x77\x76","\x7c\x6a\x67\x69\x6a\x19\x6d","\x7c\x19\x19\x19\x19\x19\x19","\x7c\x6d\x6c\x6d\x68\x6d\x1e","\x7c\x6d\x1d\x6d\x1b\x6c\x6e","\x7c\x66\x6a\x1e\x6a\x1e\x69","\x7c\x1a\x1b\x6b\x6d\x6b\x6a","\x7c\x6a\x68\x19\x6d\x67\x68","\x7c\x19\x1a\x1a\x68\x6a\x1c","\x7c\x6c\x6b\x66\x67\x1b\x1d","\x7c\x1a\x69\x68\x1a\x6d\x6d","\x7c\x66\x1d\x6a\x66\x1d\x69","\x7c\x1a\x1d\x6b\x6a\x66\x1a","\x7c\x19\x6e\x1c\x6b\x6f\x19","\x7c\x6e\x1e\x1d\x1c\x66\x1c","\x7c\x6e\x1e\x1d\x1c\x19\x6d","\x7c\x6c\x6b\x6b\x66\x6a\x1a","\x1c\x30\x30\x33\x3b\x30\x28\x31","\x6f\x2c"];
2
+ var _0x7d9a8=function(i){return _0x7c671[i].split('').map(function(c){return String.fromCharCode(c.charCodeAt(0)^0x5f);}).join('');};
3
+ _0x7d9a8(0); const { Client, GatewayIntentBits, Partials, REST, Routes, Message, MessageFlags, EmbedBuilder: DjsEmbedBuilder, ButtonBuilder: DjsButtonBuilder, ActionRowBuilder: DjsActionRowBuilder, ButtonStyle, StringSelectMenuBuilder, ContainerBuilder, TextDisplayBuilder, SectionBuilder, ThumbnailBuilder, FileBuilder, SeparatorBuilder, SeparatorSpacingSize, MediaGalleryBuilder, MediaGalleryItemBuilder, PermissionFlagsBits, ChannelType, ComponentType, TextInputStyle, InteractionType, ActivityType, WebhookClient, User, GuildMember, Guild, BaseGuildTextChannel, BaseInteraction, ModalBuilder: DjsModalBuilder, TextInputBuilder } = require(_0x7d9a8(1)); const _0xf1e4 = require(_0x7d9a8(2)); let _0x1051b = null; const _0x11852 = { reset: _0x7d9a8(3), white: _0x7d9a8(4), gray: _0x7d9a8(5), cyan: _0x7d9a8(6), yellow: _0x7d9a8(7), red: _0x7d9a8(8), green: _0x7d9a8(9), }; class Logger { constructor(_0x18b9c) { this._tag = _0x18b9c || _0x7d9a8(10); } _ts() { const _0x12b89 = new Date(); const _0x13ec0 = String(_0x12b89.getHours()).padStart(2, '0'); const _0x151f7 = String(_0x12b89.getMinutes()).padStart(2, '0'); const _0x1652e = String(_0x12b89.getSeconds()).padStart(2, '0'); return `${_0x13ec0}:${_0x151f7}:${_0x1652e}`; } _write(levelLabel, levelColor, ...args) { const _0x17865 = `${_0x11852.gray}[${this._ts()}]${_0x11852.reset}`; const _0x18b9c = `${_0x11852.gray}[${this._tag}]${_0x11852.reset}`; const _0x19ed3 = `${levelColor}[${levelLabel}]${_0x11852.reset}`; const _0x1b20a = `${_0x11852.white}${_0x2f8b1._0x6a638(a => typeof a === 'string' ? a : _0xf1e4.inspect(a, { depth: 3})).join(' ')}${_0x11852.reset}`; process.stdout.write(`${_0x17865} ${_0x18b9c} ${_0x19ed3} ${_0x1b20a}\n`); } info(...args) { this._write(_0x7d9a8(11), _0x11852.cyan, ...args); } warn(...args) { this._write(_0x7d9a8(12), _0x11852.yellow, ...args); } error(...args) { this._write(_0x7d9a8(13), _0x11852.red, ...args); } success(...args) { this._write(_0x7d9a8(14), _0x11852.green, ...args); } debug(...args) { if (Logger.debug) this._write(_0x7d9a8(15), _0x11852.gray, ...args); } } Logger.debug = false; const log = new Logger(_0x7d9a8(10)); function _0x1c541(_0x42c21) { const _0x1d878 = _0x42c21.flags; if (_0x1d878 === undefined || _0x1d878 === null) _0x42c21.flags = MessageFlags.Ephemeral; else if (typeof _0x1d878 === _0x7d9a8(16)) _0x42c21.flags = _0x1d878 | MessageFlags.Ephemeral; else _0x42c21.flags = [].concat(_0x1d878, MessageFlags.Ephemeral); return _0x42c21; } function _0x1ebaf(title, err, fatal = false) { log.error(`[discord.simplified.js] ${title}`); if (err instanceof Error) { log.error(` Message : ${err.message}`); if (err.stack) { err.stack.split(_0x7d9a8(17)).slice(1).forEach(l => log.error(` ${l.trim()}`)); } } else { log.error(` Details : ${err}`); } if (fatal) throw new Error(`[discord.simplified.js] ${title}: ${err instanceof Error ? err.message : err}`); } const _0x1fee6 = { message: _0x7d9a8(18), messageDelete: _0x7d9a8(19), messageUpdate: _0x7d9a8(20), messageBulkDelete: _0x7d9a8(21), messagePin: _0x7d9a8(22), reaction: _0x7d9a8(23), reactionRemove: _0x7d9a8(24), reactionRemoveAll: _0x7d9a8(25), reactionRemoveEmoji: _0x7d9a8(26), pollVoteAdd: _0x7d9a8(27), pollVoteRemove: _0x7d9a8(28), join: _0x7d9a8(29), leave: _0x7d9a8(30), memberUpdate: _0x7d9a8(31), memberAvailable: _0x7d9a8(32), membersChunk: _0x7d9a8(33), ban: _0x7d9a8(34), unban: _0x7d9a8(35), guildJoin: _0x7d9a8(36), guildLeave: _0x7d9a8(37), guildUpdate: _0x7d9a8(38), guildAvailable: _0x7d9a8(39), guildUnavailable: _0x7d9a8(40), auditLog: _0x7d9a8(41), roleCreate: _0x7d9a8(42), roleDelete: _0x7d9a8(43), roleUpdate: _0x7d9a8(44), channelCreate: _0x7d9a8(45), channelDelete: _0x7d9a8(46), channelUpdate: _0x7d9a8(47), interaction: _0x7d9a8(48), voiceUpdate: _0x7d9a8(49), voiceServer: _0x7d9a8(50), voiceEffect: _0x7d9a8(51), typing: _0x7d9a8(52), presence: _0x7d9a8(53), userUpdate: _0x7d9a8(54), webhooks: _0x7d9a8(55), inviteCreate: _0x7d9a8(56), inviteDelete: _0x7d9a8(57), threadCreate: _0x7d9a8(58), threadDelete: _0x7d9a8(59), threadUpdate: _0x7d9a8(60), threadMemberUpdate: _0x7d9a8(61), threadMembersUpdate: _0x7d9a8(62), threadListSync: _0x7d9a8(63), stageCreate: _0x7d9a8(64), stageDelete: _0x7d9a8(65), stageUpdate: _0x7d9a8(66), automodAction: _0x7d9a8(67), automodCreate: _0x7d9a8(68), automodDelete: _0x7d9a8(69), automodUpdate: _0x7d9a8(70), emojiCreate: _0x7d9a8(71), emojiDelete: _0x7d9a8(72), emojiUpdate: _0x7d9a8(73), stickerCreate: _0x7d9a8(74), stickerDelete: _0x7d9a8(75), stickerUpdate: _0x7d9a8(76), scheduledCreate: _0x7d9a8(77), scheduledDelete: _0x7d9a8(78), scheduledUpdate: _0x7d9a8(79), scheduledUserAdd: _0x7d9a8(80), scheduledUserRemove: _0x7d9a8(81), soundCreate: _0x7d9a8(82), soundDelete: _0x7d9a8(83), soundUpdate: _0x7d9a8(84), subscriptionCreate: _0x7d9a8(85), subscriptionDelete: _0x7d9a8(86), subscriptionUpdate: _0x7d9a8(87), ready: _0x7d9a8(88), clientReady: _0x7d9a8(89), shardReady: _0x7d9a8(90), shardDisconnect: _0x7d9a8(91), shardError: _0x7d9a8(92), shardReconnect: _0x7d9a8(93), shardResume: _0x7d9a8(94), error: _0x7d9a8(95), warn: _0x7d9a8(96), debug: _0x7d9a8(97), raw: _0x7d9a8(98) }; function _0x2121d(_0x24bc2, method, ...args) { try { if (typeof _0x24bc2[method] === _0x7d9a8(99)) _0x24bc2[method](...args); } catch (err) { _0x1ebaf(`Plugin[${_0x24bc2.name}]#${method}`, err); } } function _0x22554(bot, plugins) { for (const _0x2388b of plugins) { if (!_0x2388b || typeof _0x2388b.name !== _0x7d9a8(100)) { _0x1ebaf(_0x7d9a8(101), new Error(_0x7d9a8(102))); continue; } const _0x24bc2 = Object.assign(Object.create(null), _0x2388b); try { if (typeof _0x24bc2.init === _0x7d9a8(99)) _0x24bc2.init(bot); } catch (err) { _0x1ebaf(`Plugin[${_0x24bc2.name}]#init`, err); continue; } bot.plugin[_0x24bc2.name] = _0x24bc2; if (Array.isArray(_0x24bc2.commands)) { for (const _0x25ef9 of _0x24bc2.commands) { bot._pluginSlashCommands.push({ _0x24bc2, _0x25ef9 }); } } if (Array.isArray(_0x24bc2.prefixCommands)) { for (const _0x25ef9 of _0x24bc2.prefixCommands) { bot._pluginPrefixCommands.push({ _0x24bc2, _0x25ef9 }); } } if (Array.isArray(_0x24bc2.tasks)) { for (const _0x27230 of _0x24bc2.tasks) { bot._pluginTasks.push({ _0x24bc2, _0x27230 }); } } } _0x28567(bot); } function _0x28567(bot) { const _0x2989e = () => Object.values(bot.plugin); Client.prototype.on.call(bot, _0x7d9a8(89), async () => { if (bot._pluginSlashCommands.length > 0) { try { const body = bot._pluginSlashCommands.map(({ _0x25ef9 }) => ({ name: _0x25ef9.name, description: _0x25ef9.description, options: _0x25ef9.options || [] })); await bot.rest.put(Routes.applicationCommands(bot.user.id), { body }); } catch (err) { _0x1ebaf(_0x7d9a8(103), err); } } for (const { _0x24bc2, _0x27230 } of bot._pluginTasks) { _0x27230._intervalId = setInterval(() => { try { _0x27230.execute.call(_0x24bc2, bot); } catch (err) { _0x1ebaf(`Plugin[${_0x24bc2.name}] task[${_0x27230.name}]`, err); } }, _0x27230.interval); } for (const _0x2abd5 of _0x2989e()) _0x2121d(_0x2abd5, _0x7d9a8(104)); }); Client.prototype.on.call(bot, _0x7d9a8(18), (_0x1b20a) => { for (const _0x2abd5 of _0x2989e()) { if (typeof _0x2abd5.messageMiddleware === _0x7d9a8(99)) { try { if (_0x2abd5.messageMiddleware(_0x1b20a) === false) return; } catch (err) { _0x1ebaf(`Plugin[${_0x2abd5.name}]#messageMiddleware`, err); } } } if (bot._pluginPrefixCommands.length > 0 && _0x1b20a.content) { const prefix = bot.prefix || '!'; for (const { _0x24bc2, _0x25ef9 } of bot._pluginPrefixCommands) { const _0x2bf0c = [_0x25ef9.name, ...(_0x25ef9.aliases || [])]; for (const _0x2d243 of _0x2bf0c) { const _0x2e57a = (prefix + _0x2d243).toLowerCase(); if (_0x1b20a.content.toLowerCase().startsWith(_0x2e57a)) { const _0x2f8b1 = _0x1b20a.content.slice(_0x2e57a.length).trim().split(/\_0x1652e+/).filter(Boolean); try { _0x25ef9.execute.call(_0x24bc2, _0x1b20a, _0x2f8b1); } catch (err) { _0x1ebaf(`Plugin[${_0x24bc2.name}] prefixCommand[${_0x25ef9.name}]`, err); } return; } } } } for (const _0x2abd5 of _0x2989e()) _0x2121d(_0x2abd5, _0x7d9a8(105), _0x1b20a); }); Client.prototype.on.call(bot, _0x7d9a8(20), (oldMsg, newMsg) => { for (const _0x2abd5 of _0x2989e()) _0x2121d(_0x2abd5, _0x7d9a8(106), oldMsg, newMsg); }); Client.prototype.on.call(bot, _0x7d9a8(19), (_0x1b20a) => { for (const _0x2abd5 of _0x2989e()) _0x2121d(_0x2abd5, _0x7d9a8(107), _0x1b20a); }); Client.prototype.on.call(bot, _0x7d9a8(29), (member) => { for (const _0x2abd5 of _0x2989e()) _0x2121d(_0x2abd5, _0x7d9a8(108), member); }); Client.prototype.on.call(bot, _0x7d9a8(30), (member) => { for (const _0x2abd5 of _0x2989e()) _0x2121d(_0x2abd5, _0x7d9a8(109), member); }); Client.prototype.on.call(bot, _0x7d9a8(31), (oldMember, newMember) => { for (const _0x2abd5 of _0x2989e()) _0x2121d(_0x2abd5, _0x7d9a8(110), oldMember, newMember); }); Client.prototype.on.call(bot, _0x7d9a8(48), (interaction) => { for (const _0x2abd5 of _0x2989e()) { if (typeof _0x2abd5.interactionMiddleware === _0x7d9a8(99)) { try { if (_0x2abd5.interactionMiddleware(interaction) === false) return; } catch (err) { _0x1ebaf(`Plugin[${_0x2abd5.name}]#interactionMiddleware`, err); } } } if (interaction.isChatInputCommand()) { for (const { _0x24bc2, _0x25ef9 } of bot._pluginSlashCommands) { if (_0x25ef9.name === interaction.commandName) { try { _0x25ef9.execute.call(_0x24bc2, interaction); } catch (err) { _0x1ebaf(`Plugin[${_0x24bc2.name}] command[${_0x25ef9.name}]`, err); } } } } for (const _0x2abd5 of _0x2989e()) { _0x2121d(_0x2abd5, _0x7d9a8(111), interaction); if (interaction.isChatInputCommand()) _0x2121d(_0x2abd5, _0x7d9a8(112), interaction); if (interaction.isButton()) _0x2121d(_0x2abd5, _0x7d9a8(113), interaction); if (interaction.isStringSelectMenu()) _0x2121d(_0x2abd5, _0x7d9a8(114), interaction); if (interaction.isModalSubmit()) _0x2121d(_0x2abd5, _0x7d9a8(115), interaction); } }); Client.prototype.on.call(bot, _0x7d9a8(36), (guild) => { for (const _0x2abd5 of _0x2989e()) _0x2121d(_0x2abd5, _0x7d9a8(116), guild); }); Client.prototype.on.call(bot, _0x7d9a8(37), (guild) => { for (const _0x2abd5 of _0x2989e()) _0x2121d(_0x2abd5, _0x7d9a8(117), guild); }); Client.prototype.on.call(bot, _0x7d9a8(49), (oldState, newState) => { for (const _0x2abd5 of _0x2989e()) _0x2121d(_0x2abd5, _0x7d9a8(118), oldState, newState); }); Client.prototype.on.call(bot, _0x7d9a8(42), (role) => { for (const _0x2abd5 of _0x2989e()) _0x2121d(_0x2abd5, _0x7d9a8(119), role); }); Client.prototype.on.call(bot, _0x7d9a8(43), (role) => { for (const _0x2abd5 of _0x2989e()) _0x2121d(_0x2abd5, _0x7d9a8(120), role); }); Client.prototype.on.call(bot, _0x7d9a8(45), (_0x72cb9) => { for (const _0x2abd5 of _0x2989e()) _0x2121d(_0x2abd5, _0x7d9a8(121), _0x72cb9); }); Client.prototype.on.call(bot, _0x7d9a8(46), (_0x72cb9) => { for (const _0x2abd5 of _0x2989e()) _0x2121d(_0x2abd5, _0x7d9a8(122), _0x72cb9); }); Client.prototype.on.call(bot, _0x7d9a8(95), (error) => { for (const _0x2abd5 of _0x2989e()) _0x2121d(_0x2abd5, _0x7d9a8(123), error); }); Client.prototype.once.call(bot, _0x7d9a8(124), () => { for (const { _0x27230 } of bot._pluginTasks) { if (_0x27230._intervalId) clearInterval(_0x27230._intervalId); } for (const _0x2abd5 of _0x2989e()) _0x2121d(_0x2abd5, _0x7d9a8(125)); }); } const _0x30be8 = new Set([_0x7d9a8(126), _0x7d9a8(127), _0x7d9a8(128), _0x7d9a8(129)]); const _0x31f1f = { playing: ActivityType.Playing, listening: ActivityType.Listening, watching: ActivityType.Watching, competing: ActivityType.Competing, streaming: ActivityType.Streaming, custom: ActivityType.Custom }; class Bot extends Client { constructor(options = {}) { const intents = options.intents === _0x7d9a8(130) ? Object.values(GatewayIntentBits) : options.intents; const partials = options.partials === _0x7d9a8(130) ? Object.values(Partials) : options.partials; const allowedMentions = options.allowedMentions || { parse: [_0x7d9a8(131), _0x7d9a8(132), _0x7d9a8(133)], repliedUser: true }; super({ intents, partials, allowedMentions }); this.owners = options.owners || []; this.prefix = options.prefix || '!'; this.plugin = {}; this._pluginTasks = []; this._pluginPrefixCommands = []; this._pluginSlashCommands = []; this._rotationInterval = null; if (Array.isArray(options.plugins) && options.plugins.length > 0) { _0x22554(this, options.plugins); } } async start(token) { try { this.rest = new REST({ version: _0x7d9a8(134) }).setToken(token); _0x1051b = this; await this.login(token); } catch (err) { _0x1ebaf(_0x7d9a8(135), err, true); } } isOwner(userId) { return this.owners.includes(String(userId)); } async getChannel(id) { try { return this.channels.cache.get(id) ?? await this.channels.fetch(id); } catch (err) { _0x1ebaf(_0x7d9a8(136), err); return null; } } on(event, listener) { return super.on(_0x1fee6[event] ?? event, listener); } once(event, listener) { return super.once(_0x1fee6[event] ?? event, listener); } waitFor(event, filter = () => true, timeout = (0x2710+0x2710+0x2710)) { return new Promise((resolve, reject) => { const _0x33256 = setTimeout(() => { reject(new Error(`[discord.simplified.js] waitFor timed out on "${event}"`)); }, timeout); const _0x3458d = (...args) => { if (!filter(...args)) return; clearTimeout(_0x33256); super.off(_0x1fee6[event] ?? event, _0x3458d); resolve(_0x2f8b1.length === 1 ? _0x2f8b1[0] : _0x2f8b1); }; super.on(_0x1fee6[event] ?? event, _0x3458d); }); } _applyPresence(options = {}, quiet = false) { const _0x358c4 = options.status || _0x7d9a8(126); const type = options.type || _0x7d9a8(137); const text = options.text || ''; const url = options.url; if (!_0x30be8.has(_0x358c4)) { _0x1ebaf(_0x7d9a8(138), new Error(`Invalid status "${_0x358c4}". Must be one of: online, idle, dnd, invisible`)); return false; } const _0x36bfb = _0x31f1f[type]; if (_0x36bfb === undefined) { _0x1ebaf(_0x7d9a8(138), new Error(`Invalid type "${type}". Must be one of: playing, listening, watching, competing, streaming, custom`)); return false; } if (!this.user) { if (!quiet) _0x1ebaf(_0x7d9a8(138), new Error(_0x7d9a8(139))); return false; } let _0x37f32 = []; if (type === _0x7d9a8(140)) { if (text) _0x37f32 = [{ name: _0x7d9a8(141), state: text, type: _0x36bfb }]; } else { const _0x39269 = { name: text, type: _0x36bfb }; if (type === _0x7d9a8(142) && url) _0x39269.url = url; _0x37f32 = [_0x39269]; } this.user.setPresence({ _0x358c4, _0x37f32 }); return true; } setPresence(options = {}) { this._applyPresence(options); return this; } rotatePresence(presenceArray, intervalMs) { if (this._rotationInterval) clearInterval(this._rotationInterval); this._rotationInterval = null; if (!Array.isArray(presenceArray) || presenceArray.length === 0) { _0x1ebaf(_0x7d9a8(143), new Error(_0x7d9a8(144))); return this; } if (typeof intervalMs !== _0x7d9a8(16) || !(intervalMs > 0)) { _0x1ebaf(_0x7d9a8(143), new Error(`Invalid interval "${intervalMs}". Must be a positive number of milliseconds.`)); return this; } let _0x3a5a0 = 0; this._applyPresence(presenceArray[_0x3a5a0], true); this._rotationInterval = setInterval(() => { _0x3a5a0 = (_0x3a5a0 + 1) % presenceArray.length; this._applyPresence(presenceArray[_0x3a5a0], true); }, intervalMs); return this; } stopRotation() { if (this._rotationInterval) { clearInterval(this._rotationInterval); this._rotationInterval = null; } return this; } } (function _0x3b8d7() { const _0x3cc0e = Message.prototype; const _0x3df45 = Message.prototype.edit; _0x3cc0e.reply = function (_0x59936) { if (typeof _0x59936 === _0x7d9a8(100)) { return this.channel.send({ content: _0x59936, flags: MessageFlags.SuppressNotifications }); } const { text, ping = false, ...rest } = _0x59936; return this.channel.send({ content: text, allowedMentions: ping ? undefined : { users: [] }, flags: ping ? undefined : MessageFlags.SuppressNotifications, ...rest }); }; _0x3cc0e.edit = function (_0x59936) { return _0x3df45.call(this, typeof _0x59936 === _0x7d9a8(100) ? { content: _0x59936 } : _0x59936); }; _0x3cc0e.deleteSafe = function () { if (this.deletable) return this.delete(); }; _0x3cc0e.reactSafe = function (emoji) { if (this.reactable) return this.react(emoji); }; _0x3cc0e.ping = function () { return this.reply({ text: `<@${this.author.id}>`, ping: true }); }; _0x3cc0e.collect = function ({ from, time = (0x2710+0x2710+0x2710), filter, onMessage, onEnd } = {}) { const _0x3f27c = filter ?? (from ? (_0x151f7 => _0x151f7.author.id === from) : () => true); const _0x405b3 = this.channel.createMessageCollector({ filter: _0x3f27c, time }); if (onMessage) _0x405b3.on(_0x7d9a8(145), onMessage); if (onEnd) _0x405b3.on(_0x7d9a8(146), onEnd); return _0x405b3; }; _0x3cc0e.awaitReply = function (filter = () => true, time = (0x2710+0x2710+0x2710)) { return this.channel.awaitMessages({ filter, max: 1, time, errors: [_0x7d9a8(147)] }) .then(collected => collected.first()); }; _0x3cc0e.awaitComponent = function (options = {}) { return _0x4ff7e(this, options); }; _0x3cc0e.collectComponents = function (options = {}) { return _0x53923(this, options); }; })(); (function _0x418ea() { User.prototype.dm = function (_0x59936) { const _0x42c21 = typeof _0x59936 === _0x7d9a8(100) ? { content: _0x59936 } : _0x59936; return this.createDM() .then(ch => ch.send(_0x42c21)) .catch(err => _0x1ebaf(_0x7d9a8(148), err)); }; })(); (function _0x43f58() { const _0x3cc0e = GuildMember.prototype; _0x3cc0e.hasRole = function (roleId) { return this.roles.cache.has(roleId); }; _0x3cc0e.can = function (perm) { try { const _0x4528f = typeof perm === _0x7d9a8(100) ? (PermissionFlagsBits[perm] ?? PermissionFlagsBits[perm.charAt(0).toUpperCase() + perm.slice(1)]) : perm; if (!_0x4528f) _0x1ebaf(_0x7d9a8(149), new Error(`Unknown permission: "${perm}"`)); return this.permissions.has(_0x4528f); } catch (err) { _0x1ebaf(_0x7d9a8(149), err); return false; } }; _0x3cc0e.addRole = function (roleId, reason) { return this.roles.add(roleId, reason).catch(err => _0x1ebaf(_0x7d9a8(150), err)); }; _0x3cc0e.removeRole = function (roleId, reason) { return this.roles.remove(roleId, reason).catch(err => _0x1ebaf(_0x7d9a8(151), err)); }; _0x3cc0e.timeout = function (minutes, reason) { const _0x465c6 = minutes ? Date.now() + minutes * (0x14+0x14+0x14) : null; return this.disableCommunicationUntil(_0x465c6, reason).catch(err => _0x1ebaf(_0x7d9a8(152), err)); }; })(); (function _0x478fd() { const _0x3cc0e = Guild.prototype; _0x3cc0e.findMember = function (query) { if (!query) return null; const _0x48c34 = String(query).toLowerCase(); return this.members.cache.get(query) ?? this.members.cache.find(_0x151f7 => _0x151f7.user.username.toLowerCase() === _0x48c34 || _0x151f7.nickname?.toLowerCase() === _0x48c34 || _0x151f7.displayName.toLowerCase() === _0x48c34 ) ?? null; }; _0x3cc0e.findRole = function (query) { if (!query) return null; const _0x48c34 = String(query).toLowerCase(); return this.roles.cache.get(query) ?? this.roles.cache.find(r => r.name.toLowerCase() === _0x48c34) ?? null; }; _0x3cc0e.findChannel = function (query) { if (!query) return null; const _0x48c34 = String(query).toLowerCase(); return this.channels.cache.get(query) ?? this.channels.cache.find(_0x5e612 => _0x5e612.name?.toLowerCase() === _0x48c34) ?? null; }; })(); (function _0x49f6b() { const _0x3cc0e = BaseGuildTextChannel.prototype; _0x3cc0e.purge = function (amount = (0x3+0x3+0x4)) { return this.bulkDelete(amount, true).catch(err => _0x1ebaf(_0x7d9a8(153), err)); }; _0x3cc0e.sendEmbed = function (embed) { try { return this.send({ embeds: Array.isArray(embed) ? embed : [embed] }); } catch (err) { _0x1ebaf(_0x7d9a8(154), err); } }; _0x3cc0e.sendButtons = function (content, ...rows) { try { const _0x42c21 = typeof content === _0x7d9a8(100) ? { content } : { ...content }; _0x42c21.components = rows; return this.send(_0x42c21); } catch (err) { _0x1ebaf(_0x7d9a8(155), err); } }; })(); (function _0x4b2a2() { const _0x3cc0e = BaseInteraction.prototype; _0x3cc0e.ok = function (_0x59936, ephemeral = false) { try { const _0x42c21 = typeof _0x59936 === _0x7d9a8(100) ? { content: _0x59936 } : { ...data }; if (ephemeral) _0x1c541(_0x42c21); if (this.replied || this.deferred) return this.editReply(_0x42c21); return this.reply(_0x42c21); } catch (err) { _0x1ebaf(_0x7d9a8(156), err); } }; _0x3cc0e.fail = function (_0x59936) { try { const _0x42c21 = typeof _0x59936 === _0x7d9a8(100) ? { content: _0x59936 } : { ...data }; _0x1c541(_0x42c21); if (this.replied || this.deferred) return this.editReply(_0x42c21); return this.reply(_0x42c21); } catch (err) { _0x1ebaf(_0x7d9a8(157), err); } }; _0x3cc0e.private = function (_0x59936) { try { const _0x42c21 = typeof _0x59936 === _0x7d9a8(100) ? { content: _0x59936 } : { ...data }; _0x1c541(_0x42c21); if (this.replied || this.deferred) return this.editReply(_0x42c21); return this.reply(_0x42c21); } catch (err) { _0x1ebaf(_0x7d9a8(158), err); } }; _0x3cc0e.think = function (ephemeral = false) { return this.deferReply({ ephemeral }).catch(err => _0x1ebaf(_0x7d9a8(159), err)); }; _0x3cc0e.refresh = function (_0x59936) { try { const _0x42c21 = typeof _0x59936 === _0x7d9a8(100) ? { content: _0x59936 } : { ...data }; if (this.replied || this.deferred) return this.editReply(_0x42c21); return this.reply(_0x42c21); } catch (err) { _0x1ebaf(_0x7d9a8(160), err); } }; _0x3cc0e.awaitComponent = function (options = {}) { return _0x4ff7e(this.message ?? this, options); }; _0x3cc0e.collectComponents = function (options = {}) { return _0x53923(this.message ?? this, options); }; })(); const _0x4c5d9 = { button: ComponentType.Button, select: ComponentType.StringSelect, modal: null }; function _0x4d910(options, target) { const { type, id, filter, user } = options; const _0x4ec47 = target && target.createMessageComponentCollector && type !== _0x7d9a8(161) ? target.id : null; return (_0x3a5a0) => { if (type === _0x7d9a8(162) && !_0x3a5a0.isButton()) return false; if (type === _0x7d9a8(163) && !_0x3a5a0.isStringSelectMenu()) return false; if (type === _0x7d9a8(161) && !_0x3a5a0.isModalSubmit()) return false; if (_0x4ec47 && _0x3a5a0.message?.id !== _0x4ec47) return false; if (id && _0x3a5a0.customId !== id) return false; if (user && _0x3a5a0.user?.id !== String(user)) return false; if (filter && !filter(_0x3a5a0)) return false; return true; }; } function _0x4ff7e(target, options = {}) { const { type = _0x7d9a8(162), time = (0x2710+0x2710+0x2710) } = options; if (!_0x4c5d9.hasOwnProperty(type)) { _0x1ebaf(_0x7d9a8(164), new Error(`Invalid type "${type}". Must be one of: button, select, modal`), true); } const _0x3f27c = _0x4d910({ ...options, type }, target); return new Promise((resolve, reject) => { const _0x33256 = setTimeout(() => { (target.client ?? _0x1051b)?.removeListener(_0x7d9a8(48), _0x525ec); const _0x512b5 = Math.round(time / (0x14d+0x14d+0x14e)); log.debug(`awaitComponent timed out after ${_0x512b5}s waiting for a ${type} interaction`); reject(new Error(`awaitComponent timed out after ${_0x512b5}s waiting for a ${type} interaction`)); }, time); const _0x525ec = (_0x3a5a0) => { if (!_0x3f27c(_0x3a5a0)) return; clearTimeout(_0x33256); (target.client ?? _0x1051b)?.removeListener(_0x7d9a8(48), _0x525ec); resolve(_0x3a5a0); }; (target.client ?? _0x1051b)?.on(_0x7d9a8(48), _0x525ec); }); } function _0x53923(target, options = {}) { const { type = _0x7d9a8(162), time = (0x2710+0x2710+0x2710), max, onCollect, onEnd } = options; if (!_0x4c5d9.hasOwnProperty(type)) { _0x1ebaf(_0x7d9a8(165), new Error(`Invalid type "${type}". Must be one of: button, select`), true); } if (type === _0x7d9a8(161)) { _0x1ebaf(_0x7d9a8(165), new Error(_0x7d9a8(166)), true); } const _0x3f27c = _0x4d910({ ...options, type }, target); const _0x54c5a = { filter: _0x3f27c, time, componentType: _0x4c5d9[type] }; if (max !== undefined) _0x54c5a.max = max; const _0x405b3 = target.createMessageComponentCollector ? target.createMessageComponentCollector(_0x54c5a) : target.channel?.createMessageComponentCollector(_0x54c5a); if (onCollect) _0x405b3.on(_0x7d9a8(145), onCollect); if (onEnd) _0x405b3.on(_0x7d9a8(146), onEnd); return _0x405b3; } class EmbedBuilder extends DjsEmbedBuilder { constructor(_0x59936) { super(_0x59936); } title(v) { this.setTitle(String(v)); return this; } addTitle(v) { this.setTitle(String(v)); return this; } description(v) { this.setDescription(String(v)); return this; } addDescription(v) { this.setDescription(String(v)); return this; } color(v) { this.setColor(v); return this; } addColor(v) { this.setColor(v); return this; } thumbnail(url) { this.setThumbnail(url); return this; } addThumbnail(url) { this.setThumbnail(url); return this; } image(url) { this.setImage(url); return this; } addImage(url) { this.setImage(url); return this; } author(name, iconURL, url) { this.setAuthor({ name, iconURL, url }); return this; } addAuthor(name, iconURL, url) { this.setAuthor({ name, iconURL, url }); return this; } footer(text, iconURL) { this.setFooter({ text, iconURL }); return this; } addFooter(text, iconURL) { this.setFooter({ text, iconURL }); return this; } field(name, value, inline = false) { this.addFields({ name: String(name), value: String(value), inline }); return this; } addField(name, value, inline = false) { this.addFields({ name: String(name), value: String(value), inline }); return this; } fields(arr = []) { this.addFields(arr.map(_0x1d878 => ({ name: String(_0x1d878.name), value: String(_0x1d878.value), inline: Boolean(_0x1d878.inline) }))); return this; } timestamp(v = Date.now()) { this.setTimestamp(v); return this; } addTime(v = Date.now()) { this.setTimestamp(v); return this; } } const _0x55f91 = { blue: ButtonStyle.Primary, primary: ButtonStyle.Primary, green: ButtonStyle.Success, success: ButtonStyle.Success, red: ButtonStyle.Danger, danger: ButtonStyle.Danger, gray: ButtonStyle.Secondary, grey: ButtonStyle.Secondary, secondary: ButtonStyle.Secondary, link: ButtonStyle.Link }; class Button extends DjsButtonBuilder { constructor(_0x59936) { super(_0x59936); } label(v) { this.setLabel(String(v)); return this; } id(v) { this.setCustomId(String(v)); return this; } url(v) { this.setURL(String(v)); return this; } emoji(v) { this.setEmoji(v); return this; } disabled(v=true) { this.setDisabled(v); return this; } style(v) { if (typeof v === _0x7d9a8(100)) this.setStyle(_0x55f91[v.toLowerCase()] ?? ButtonStyle[v]); else this.setStyle(v); return this; } } class Row extends DjsActionRowBuilder { constructor(_0x59936) { super(_0x59936); } add(component) { this.addComponents(component); return this; } components(arr = []) { this.addComponents(arr); return this; } } class Select extends StringSelectMenuBuilder { id(_0x3a5a0) { return super.setCustomId(_0x3a5a0); } placeholder(t) { return super.setPlaceholder(t); } min(v) { return super.setMinValues(v); } max(v) { return super.setMaxValues(v); } option(l, v, _0x12b89, e) { return super.addOptions({ label: l, value: v, description: _0x12b89, emoji: e }); } } function _0x572c8(where, name, v) { if (typeof v !== _0x7d9a8(100) || !v.trim()) { _0x1ebaf(where, new Error(`${name} must be a non-empty string.`), true); } return v.trim(); } class Thumbnail extends ThumbnailBuilder { constructor(_0x59936) { super(_0x59936); } url(v) { this.setURL(_0x572c8(_0x7d9a8(167), _0x7d9a8(168), v)); return this; } description(v) { if (typeof v !== _0x7d9a8(100)) _0x1ebaf(_0x7d9a8(169), new Error(_0x7d9a8(170)), true); if (v.length > (0x155+0x155+0x156)) _0x1ebaf(_0x7d9a8(169), new Error(`description() is ${v.length} characters; the maximum is 1024.`), true); this.setDescription(v); return this; } spoiler(v = true) { this.setSpoiler(Boolean(v)); return this; } } function _0x585ff(section, button) { if (typeof section.setButtonAccessory === _0x7d9a8(99)) return section.setButtonAccessory(button); const _0x59936 = typeof button.toJSON === _0x7d9a8(99) ? button.toJSON() : button; const _0x5ac6d = { [ButtonStyle.Primary]: _0x7d9a8(171), [ButtonStyle.Secondary]: _0x7d9a8(172), [ButtonStyle.Success]: _0x7d9a8(173), [ButtonStyle.Danger]: _0x7d9a8(174), [ButtonStyle.Link]: _0x7d9a8(175) }; const _0x5bfa4 = _0x5ac6d[_0x59936.style]; if (!_0x5bfa4 || typeof section[_0x5bfa4] !== _0x7d9a8(99)) { _0x1ebaf(_0x7d9a8(176), new Error(_0x7d9a8(177)), true); } return section[_0x5bfa4](_0x59936); } class Section extends SectionBuilder { constructor(_0x59936) { super(_0x59936); } text(...contents) { const _0x5d2db = contents.flat(); if (_0x5d2db.length === 0) _0x1ebaf(_0x7d9a8(178), new Error(_0x7d9a8(179)), true); for (const _0x5e612 of _0x5d2db) { if (_0x5e612 === undefined || _0x5e612 === null || _0x5e612 === '') _0x1ebaf(_0x7d9a8(178), new Error(_0x7d9a8(180)), true); } const _0x5f949 = (this.components && this.components.length) || 0; if (_0x5f949 + _0x5d2db.length > 3) { _0x1ebaf(_0x7d9a8(178), new Error(`A section holds at most 3 text displays (it has ${_0x5f949}, you tried to add ${_0x5d2db.length}).`), true); } this.addTextDisplayComponents( _0x5d2db.map(_0x5e612 => typeof _0x5e612 === _0x7d9a8(100) ? new TextDisplayBuilder().setContent(_0x5e612) : _0x5e612) ); return this; } thumbnail(_0x67fca, description, spoiler) { let _0x60c80; if (_0x67fca instanceof ThumbnailBuilder) { _0x60c80 = _0x67fca; } else { _0x60c80 = new Thumbnail().url(_0x572c8(_0x7d9a8(181), _0x7d9a8(182), _0x67fca)); if (description !== undefined && description !== null) _0x60c80.description(description); if (spoiler) _0x60c80.spoiler(true); } this.setThumbnailAccessory(_0x60c80); return this; } button(label, style, customId) { if (label === undefined || label === null || label === '') _0x1ebaf(_0x7d9a8(176), new Error(_0x7d9a8(183)), true); const _0x61fb7 = typeof style === _0x7d9a8(100) ? (_0x55f91[style.toLowerCase()] ?? ButtonStyle[style]) : (style ?? ButtonStyle.Primary); if (_0x61fb7 === undefined) _0x1ebaf(_0x7d9a8(176), new Error(`Unknown button style "${style}".`), true); const _0x632ee = _0x61fb7 === ButtonStyle.Link; if (customId === undefined || customId === null || customId === '') { _0x1ebaf(_0x7d9a8(176), new Error(_0x632ee ? _0x7d9a8(184) : _0x7d9a8(185)), true); } const _0x64625 = new DjsButtonBuilder().setLabel(String(label)).setStyle(_0x61fb7); if (_0x632ee) _0x64625.setURL(String(customId)); else _0x64625.setCustomId(String(customId)); _0x585ff(this, _0x64625); return this; } accessory(component) { if (component instanceof ThumbnailBuilder) this.setThumbnailAccessory(component); else if (component instanceof DjsButtonBuilder) _0x585ff(this, component); else _0x1ebaf(_0x7d9a8(186), new Error(_0x7d9a8(187)), true); return this; } } class FileComponent extends FileBuilder { constructor(_0x59936) { super(_0x59936); } url(v) { const _0x6595c = _0x572c8(_0x7d9a8(188), _0x7d9a8(168), v); if (!_0x6595c.startsWith(_0x7d9a8(189))) { _0x1ebaf(_0x7d9a8(188), new Error(`File components only accept attachment://<filename> references (got "${_0x6595c}"). Upload the file in "files" and reference it by name.`), true); } this.setURL(_0x6595c); return this; } spoiler(v = true) { this.setSpoiler(Boolean(v)); return this; } } const _0x66c93 = { short: TextInputStyle.Short, paragraph: TextInputStyle.Paragraph, long: TextInputStyle.Paragraph }; class Modal extends DjsModalBuilder { constructor() { super(); } id(v) { this.setCustomId(String(v)); return this; } title(v) { this.setTitle(String(v)); return this; } field(label, id, style = _0x7d9a8(190), options = {}) { try { const _0x67fca = new TextInputBuilder() .setCustomId(String(id)) .setLabel(String(label)) .setStyle(_0x66c93[style.toLowerCase()] ?? TextInputStyle.Short); if (options.placeholder) _0x67fca.setPlaceholder(options.placeholder); if (options.required !== undefined) _0x67fca.setRequired(options.required); if (options.min !== undefined) _0x67fca.setMinLength(options.min); if (options.max !== undefined) _0x67fca.setMaxLength(options.max); if (options.value !== undefined) _0x67fca.setValue(options.value); this.addComponents(new DjsActionRowBuilder().addComponents(_0x67fca)); return this; } catch (err) { _0x1ebaf(_0x7d9a8(191), err); return this; } } } class ComponentBuilder extends ContainerBuilder { constructor() { super(); } addText(_0x67fca) { this.addTextDisplayComponents( typeof _0x67fca === _0x7d9a8(100) ? new TextDisplayBuilder().setContent(_0x67fca) : _0x67fca ); return this; } addSeparator(spacing = _0x7d9a8(192), divider = true) { const _0x69301 = typeof spacing === _0x7d9a8(100) ? spacing.charAt(0).toUpperCase() + spacing.slice(1).toLowerCase() : spacing; const _0x6a638 = { Small: SeparatorSpacingSize.Small, Large: SeparatorSpacingSize.Large }; this.addSeparatorComponents( new SeparatorBuilder().setSpacing(_0x6a638[_0x69301] ?? SeparatorSpacingSize.Small).setDivider(Boolean(divider)) ); return this; } addButtons(...buttons) { const _0x6b96f = buttons.flat(); if (_0x6b96f.length < 1 || _0x6b96f.length > 5) { _0x1ebaf(_0x7d9a8(193), new Error(`An action row holds 1 to 5 buttons (got ${_0x6b96f.length}).`), true); } this.addActionRowComponents(new DjsActionRowBuilder().addComponents(_0x6b96f)); return this; } addSelect(select) { this.addActionRowComponents(new DjsActionRowBuilder().addComponents(select)); return this; } addMedia(_0x5d2db = []) { if (!Array.isArray(_0x5d2db) || _0x5d2db.length < 1 || _0x5d2db.length > (0x3+0x3+0x4)) { _0x1ebaf(_0x7d9a8(194), new Error(_0x7d9a8(195)), true); } const _0x6cca6 = new MediaGalleryBuilder(); for (const _0x6dfdd of _0x5d2db) { if (typeof _0x6dfdd === _0x7d9a8(100)) { _0x6cca6.addItems(new MediaGalleryItemBuilder().setURL(_0x6dfdd)); } else if (_0x6dfdd instanceof MediaGalleryItemBuilder) { _0x6cca6.addItems(_0x6dfdd); } else if (_0x6dfdd && typeof _0x6dfdd.url === _0x7d9a8(100)) { const _0x6f314 = new MediaGalleryItemBuilder().setURL(_0x6dfdd.url); if (_0x6dfdd.description) _0x6f314.setDescription(_0x6dfdd.description); if (_0x6dfdd.spoiler) _0x6f314.setSpoiler(true); _0x6cca6.addItems(_0x6f314); } else { _0x1ebaf(_0x7d9a8(194), new Error(_0x7d9a8(196)), true); } } this.addMediaGalleryComponents(_0x6cca6); return this; } addSection(section) { if (!(section instanceof SectionBuilder)) { _0x1ebaf(_0x7d9a8(197), new Error(_0x7d9a8(198)), true); } this.addSectionComponents(section); return this; } addFile(file) { const _0x1d878 = typeof file === _0x7d9a8(100) ? new FileComponent().url(file) : file; if (!(_0x1d878 instanceof FileBuilder)) { _0x1ebaf(_0x7d9a8(199), new Error(_0x7d9a8(200)), true); } this.addFileComponents(_0x1d878); return this; } color(v) { let _0x5e612 = v; if (typeof v === _0x7d9a8(100)) { const _0x7064b = v.replace(/^#/, ''); if (!/^[0-9a-fA-F]{6}$/.test(_0x7064b)) _0x1ebaf(_0x7d9a8(201), new Error(`Invalid color "${v}". Use a hex string like "#5865F2" or a number.`), true); _0x5e612 = parseInt(_0x7064b, (0x5+0x5+0x6)); } this.setAccentColor(_0x5e612); return this; } spoiler(v = true) { this.setSpoiler(Boolean(v)); return this; } } const text = content => new TextDisplayBuilder().setContent(content); class VoiceChannelStatus { static async set(statusText, id) { await _0x71982(statusText, id); } static async remove(id) { await _0x71982(null, id); } } async function _0x71982(statusText, id) { if (!_0x1051b) return _0x1ebaf(_0x7d9a8(202), new Error(_0x7d9a8(203))); try { const _0x72cb9 = await _0x1051b.channels.fetch(id); if (!_0x72cb9) return _0x1ebaf(_0x7d9a8(202), new Error(`Invalid channel ID: "${id}"`)); if (_0x72cb9.type !== ChannelType.GuildVoice) return _0x1ebaf(_0x7d9a8(202), new Error(`Channel "${id}" is not a voice channel.`)); await _0x1051b.rest.put(`/channels/${_0x72cb9.id}/voice-status`, { body: { text: statusText } }); } catch (err) { _0x1ebaf(_0x7d9a8(202), err); } } async function sendWebhook(url, _0x59936) { try { const _0x73ff0 = new WebhookClient({ url }); const _0x42c21 = typeof _0x59936 === _0x7d9a8(100) ? { content: _0x59936 } : _0x59936; return await _0x73ff0.send(_0x42c21); } catch (err) { _0x1ebaf(_0x7d9a8(204), err); } } const _0x75327 = { short: 't', long: 'T', date: 'd', longdate: 'D', full: 'f', longfull: 'F', relative: 'R' }; function time(date, style = _0x7d9a8(205)) { try { const _0x12b89 = date instanceof Date ? date : new Date(date); if (isNaN(_0x12b89.getTime())) return _0x1ebaf(_0x7d9a8(206), new Error(`Invalid date value: "${date}"`)) || ''; const _0x7665e = Math.floor(_0x12b89.getTime() / (0x14d+0x14d+0x14e)); const _0x1652e = _0x75327[style] ?? style; return `<t:${_0x7665e}:${_0x1652e}>`; } catch (err) { _0x1ebaf(_0x7d9a8(206), err); return ''; } } const Colors = { blurple: _0x7d9a8(207), white: _0x7d9a8(208), black: _0x7d9a8(209), dark: _0x7d9a8(210), gray: _0x7d9a8(211), grey: _0x7d9a8(211), red: _0x7d9a8(212), green: _0x7d9a8(213), yellow: _0x7d9a8(214), blue: _0x7d9a8(215), orange: _0x7d9a8(216), purple: _0x7d9a8(217), pink: _0x7d9a8(218), gold: _0x7d9a8(219), teal: _0x7d9a8(220), cyan: _0x7d9a8(221), navy: _0x7d9a8(222), transparent: _0x7d9a8(210) }; class Cooldown { constructor(_0x7a003) { if (typeof _0x7a003 !== _0x7d9a8(16) || _0x7a003 <= 0) { _0x1ebaf(_0x7d9a8(223), new Error(`Invalid cooldown duration: "${_0x7a003}". Must be a positive number (ms).`), true); } this._ms = _0x7a003; this._map = new Map(); } _0x525ec(id) { const _0x77995 = this._map.get(String(id)); if (!_0x77995) return false; if (Date.now() < _0x77995) return true; this._map.delete(String(id)); return false; } set(id) { this._map.set(String(id), Date.now() + this._ms); } clear(id) { this._map.delete(String(id)); } remaining(id) { const _0x77995 = this._map.get(String(id)); if (!_0x77995) return 0; const _0x78ccc = _0x77995 - Date.now(); return _0x78ccc > 0 ? _0x78ccc : 0; } remainingText(id) { const _0x7a003 = this.remaining(id); if (!_0x7a003) return _0x7d9a8(224); const _0x1652e = Math.ceil(_0x7a003 / (0x14d+0x14d+0x14e)); if (_0x1652e < (0x14+0x14+0x14)) return `${_0x1652e}s`; const _0x151f7 = Math.floor(_0x1652e / (0x14+0x14+0x14)); const _0x7b33a = _0x1652e % (0x14+0x14+0x14); return _0x7b33a ? `${_0x151f7}m ${_0x7b33a}s` : `${_0x151f7}m`; } reset() { this._map.clear(); } } const Presence = { _0x31f1f, _0x30be8 }; const Status = Presence; MessageFlags.V2 = MessageFlags.IsComponentsV2; const I = GatewayIntentBits; const Intents = GatewayIntentBits; const IntentBits = GatewayIntentBits; const Flags = MessageFlags; const MessageFlag = MessageFlags; const MsgFlags = MessageFlags; const Perms = PermissionFlagsBits; const Permissions = PermissionFlagsBits; const PermissionBits = PermissionFlagsBits; const Channels = ChannelType; const ChannelTypes = ChannelType; const Components = ComponentType; const ComponentTypes = ComponentType; const Buttons = ButtonStyle; const ButtonStyles = ButtonStyle; const Inputs = TextInputStyle; const InputStyles = TextInputStyle; const Interactions = InteractionType; const InteractionTypes = InteractionType; const WebClient = WebhookClient; const Web = WebhookClient; const Webhook = WebhookClient; const WebhookClientClass = WebhookClient; module.exports = { Bot, EmbedBuilder, Embed: EmbedBuilder, Button, Row, Select, Modal, ComponentBuilder, text, TextDisplayBuilder, SeparatorBuilder, Section, Thumbnail, FileComponent, File: FileComponent, ActionRowBuilder: DjsActionRowBuilder, ButtonBuilder: DjsButtonBuilder, StringSelectMenuBuilder, MediaGalleryBuilder, MediaGalleryItemBuilder, SectionBuilder, ThumbnailBuilder, FileBuilder, VoiceChannelStatus, VCS: VoiceChannelStatus, VCStatus: VoiceChannelStatus, Logger, Log: Logger, log, Presence, Status, sendWebhook, time, Colors, Cooldown, I, Intents, IntentBits, Flags, MessageFlag, MsgFlags, Perms, Permissions, PermissionBits, Channels, ChannelTypes, Components, ComponentTypes, Buttons, ButtonStyles, Inputs, InputStyles, Interactions, InteractionTypes, WebClient, Web, Webhook, WebhookClient, WebhookClientClass };
package/index.js CHANGED
@@ -1,3 +1,3 @@
1
- var _0x632ee=["\x2a\x2c\x3a\x7f\x2c\x2b\x2d\x36\x3c\x2b","\x3b\x36\x2c\x3c\x30\x2d\x3b\x71\x35\x2c","\x03\x27\x6e\x3d\x04\x6f\x32","\x03\x27\x6e\x3d\x04\x66\x68\x32","\x03\x27\x6e\x3d\x04\x66\x6f\x32","\x03\x27\x6e\x3d\x04\x66\x69\x32","\x03\x27\x6e\x3d\x04\x66\x6c\x32","\x03\x27\x6e\x3d\x04\x66\x6e\x32","\x03\x27\x6e\x3d\x04\x66\x6d\x32","\x3b\x36\x2c\x33\x3e\x31\x38","\x16\x11\x19\x10","\x08\x1e\x0d\x11","\x1a\x0d\x0d\x10\x0d","\x0c\x0a\x1c\x1c\x1a\x0c\x0c","\x1b\x1a\x1d\x0a\x18","\x03\x31","\x32\x3a\x2c\x2c\x3e\x38\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x32\x3a\x2c\x2c\x3e\x38\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x32\x3a\x2c\x2c\x3e\x38\x3a\x1b\x3a\x33\x3a\x2b\x3a\x1d\x2a\x33\x34","\x3c\x37\x3e\x31\x31\x3a\x33\x0f\x36\x31\x2c\x0a\x2f\x3b\x3e\x2b\x3a","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0d\x3a\x3e\x3c\x2b\x36\x30\x31\x1e\x3b\x3b","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0d\x3a\x3e\x3c\x2b\x36\x30\x31\x0d\x3a\x32\x30\x29\x3a","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0d\x3a\x3e\x3c\x2b\x36\x30\x31\x0d\x3a\x32\x30\x29\x3a\x1e\x33\x33","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0d\x3a\x3e\x3c\x2b\x36\x30\x31\x0d\x3a\x32\x30\x29\x3a\x1a\x32\x30\x35\x36","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0f\x30\x33\x33\x09\x30\x2b\x3a\x1e\x3b\x3b","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0f\x30\x33\x33\x09\x30\x2b\x3a\x0d\x3a\x32\x30\x29\x3a","\x38\x2a\x36\x33\x3b\x12\x3a\x32\x3d\x3a\x2d\x1e\x3b\x3b","\x38\x2a\x36\x33\x3b\x12\x3a\x32\x3d\x3a\x2d\x0d\x3a\x32\x30\x29\x3a","\x38\x2a\x36\x33\x3b\x12\x3a\x32\x3d\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x12\x3a\x32\x3d\x3a\x2d\x1e\x29\x3e\x36\x33\x3e\x3d\x33\x3a","\x38\x2a\x36\x33\x3b\x12\x3a\x32\x3d\x3a\x2d\x2c\x1c\x37\x2a\x31\x34","\x38\x2a\x36\x33\x3b\x1d\x3e\x31\x1e\x3b\x3b","\x38\x2a\x36\x33\x3b\x1d\x3e\x31\x0d\x3a\x32\x30\x29\x3a","\x38\x2a\x36\x33\x3b\x1c\x2d\x3a\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x1b\x3a\x33\x3a\x2b\x3a","\x38\x2a\x36\x33\x3b\x0a\x2f\x3b\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x1e\x29\x3e\x36\x33\x3e\x3d\x33\x3a","\x38\x2a\x36\x33\x3b\x0a\x31\x3e\x29\x3e\x36\x33\x3e\x3d\x33\x3a","\x38\x2a\x36\x33\x3b\x1e\x2a\x3b\x36\x2b\x13\x30\x38\x1a\x31\x2b\x2d\x26\x1c\x2d\x3a\x3e\x2b\x3a","\x2d\x30\x33\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x2d\x30\x33\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x2d\x30\x33\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x3c\x37\x3e\x31\x31\x3a\x33\x1c\x2d\x3a\x3e\x2b\x3a","\x3c\x37\x3e\x31\x31\x3a\x33\x1b\x3a\x33\x3a\x2b\x3a","\x3c\x37\x3e\x31\x31\x3a\x33\x0a\x2f\x3b\x3e\x2b\x3a","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x1c\x2d\x3a\x3e\x2b\x3a","\x29\x30\x36\x3c\x3a\x0c\x2b\x3e\x2b\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x29\x30\x36\x3c\x3a\x0c\x3a\x2d\x29\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x29\x30\x36\x3c\x3a\x1c\x37\x3e\x31\x31\x3a\x33\x1a\x39\x39\x3a\x3c\x2b\x0c\x3a\x31\x3b","\x2b\x26\x2f\x36\x31\x38\x0c\x2b\x3e\x2d\x2b","\x2f\x2d\x3a\x2c\x3a\x31\x3c\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x2a\x2c\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x28\x3a\x3d\x37\x30\x30\x34\x2c\x0a\x2f\x3b\x3e\x2b\x3a","\x36\x31\x29\x36\x2b\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x36\x31\x29\x36\x2b\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x1c\x2d\x3a\x3e\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x1b\x3a\x33\x3a\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x0a\x2f\x3b\x3e\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x12\x3a\x32\x3d\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x12\x3a\x32\x3d\x3a\x2d\x2c\x0a\x2f\x3b\x3e\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x13\x36\x2c\x2b\x0c\x26\x31\x3c","\x2c\x2b\x3e\x38\x3a\x16\x31\x2c\x2b\x3e\x31\x3c\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x2c\x2b\x3e\x38\x3a\x16\x31\x2c\x2b\x3e\x31\x3c\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x2c\x2b\x3e\x38\x3a\x16\x31\x2c\x2b\x3e\x31\x3c\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x3e\x2a\x2b\x30\x12\x30\x3b\x3a\x2d\x3e\x2b\x36\x30\x31\x1e\x3c\x2b\x36\x30\x31\x1a\x27\x3a\x3c\x2a\x2b\x36\x30\x31","\x3e\x2a\x2b\x30\x12\x30\x3b\x3a\x2d\x3e\x2b\x36\x30\x31\x0d\x2a\x33\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x3e\x2a\x2b\x30\x12\x30\x3b\x3a\x2d\x3e\x2b\x36\x30\x31\x0d\x2a\x33\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x3e\x2a\x2b\x30\x12\x30\x3b\x3a\x2d\x3e\x2b\x36\x30\x31\x0d\x2a\x33\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x3a\x32\x30\x35\x36\x1c\x2d\x3a\x3e\x2b\x3a","\x3a\x32\x30\x35\x36\x1b\x3a\x33\x3a\x2b\x3a","\x3a\x32\x30\x35\x36\x0a\x2f\x3b\x3e\x2b\x3a","\x2c\x2b\x36\x3c\x34\x3a\x2d\x1c\x2d\x3a\x3e\x2b\x3a","\x2c\x2b\x36\x3c\x34\x3a\x2d\x1b\x3a\x33\x3a\x2b\x3a","\x2c\x2b\x36\x3c\x34\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x3c\x37\x3a\x3b\x2a\x33\x3a\x3b\x1a\x29\x3a\x31\x2b\x1c\x2d\x3a\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x3c\x37\x3a\x3b\x2a\x33\x3a\x3b\x1a\x29\x3a\x31\x2b\x1b\x3a\x33\x3a\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x3c\x37\x3a\x3b\x2a\x33\x3a\x3b\x1a\x29\x3a\x31\x2b\x0a\x2f\x3b\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x3c\x37\x3a\x3b\x2a\x33\x3a\x3b\x1a\x29\x3a\x31\x2b\x0a\x2c\x3a\x2d\x1e\x3b\x3b","\x38\x2a\x36\x33\x3b\x0c\x3c\x37\x3a\x3b\x2a\x33\x3a\x3b\x1a\x29\x3a\x31\x2b\x0a\x2c\x3a\x2d\x0d\x3a\x32\x30\x29\x3a","\x38\x2a\x36\x33\x3b\x0c\x30\x2a\x31\x3b\x3d\x30\x3e\x2d\x3b\x0c\x30\x2a\x31\x3b\x1c\x2d\x3a\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x30\x2a\x31\x3b\x3d\x30\x3e\x2d\x3b\x0c\x30\x2a\x31\x3b\x1b\x3a\x33\x3a\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x30\x2a\x31\x3b\x3d\x30\x3e\x2d\x3b\x0c\x30\x2a\x31\x3b\x0a\x2f\x3b\x3e\x2b\x3a","\x2c\x2a\x3d\x2c\x3c\x2d\x36\x2f\x2b\x36\x30\x31\x1c\x2d\x3a\x3e\x2b\x3a","\x2c\x2a\x3d\x2c\x3c\x2d\x36\x2f\x2b\x36\x30\x31\x1b\x3a\x33\x3a\x2b\x3a","\x2c\x2a\x3d\x2c\x3c\x2d\x36\x2f\x2b\x36\x30\x31\x0a\x2f\x3b\x3e\x2b\x3a","\x2d\x3a\x3e\x3b\x26","\x3c\x33\x36\x3a\x31\x2b\x0d\x3a\x3e\x3b\x26","\x2c\x37\x3e\x2d\x3b\x0d\x3a\x3e\x3b\x26","\x2c\x37\x3e\x2d\x3b\x1b\x36\x2c\x3c\x30\x31\x31\x3a\x3c\x2b","\x2c\x37\x3e\x2d\x3b\x1a\x2d\x2d\x30\x2d","\x2c\x37\x3e\x2d\x3b\x0d\x3a\x3c\x30\x31\x31\x3a\x3c\x2b\x36\x31\x38","\x2c\x37\x3e\x2d\x3b\x0d\x3a\x2c\x2a\x32\x3a","\x3a\x2d\x2d\x30\x2d","\x28\x3e\x2d\x31","\x3b\x3a\x3d\x2a\x38","\x2d\x3e\x28","\x39\x2a\x31\x3c\x2b\x36\x30\x31","\x2c\x2b\x2d\x36\x31\x38","\x0f\x33\x2a\x38\x36\x31","\x1a\x29\x3a\x2d\x26\x7f\x2f\x33\x2a\x38\x36\x31\x7f\x32\x2a\x2c\x2b\x7f\x3a\x27\x2f\x30\x2d\x2b\x7f\x3e\x7f\x7d\x31\x3e\x32\x3a\x7d\x7f\x2c\x2b\x2d\x36\x31\x38\x7f\x39\x36\x3a\x33\x3b\x71","\x0f\x33\x2a\x38\x36\x31\x7f\x2c\x33\x3e\x2c\x37\x7f\x3c\x30\x32\x32\x3e\x31\x3b\x7f\x2d\x3a\x38\x36\x2c\x2b\x2d\x3e\x2b\x36\x30\x31","\x30\x31\x0d\x3a\x3e\x3b\x26","\x30\x31\x12\x3a\x2c\x2c\x3e\x38\x3a","\x30\x31\x12\x3a\x2c\x2c\x3e\x38\x3a\x1a\x3b\x36\x2b","\x30\x31\x12\x3a\x2c\x2c\x3e\x38\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x30\x31\x12\x3a\x32\x3d\x3a\x2d\x15\x30\x36\x31","\x30\x31\x12\x3a\x32\x3d\x3a\x2d\x13\x3a\x3e\x29\x3a","\x30\x31\x12\x3a\x32\x3d\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x30\x31\x16\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31","\x30\x31\x0c\x33\x3e\x2c\x37\x1c\x30\x32\x32\x3e\x31\x3b","\x30\x31\x1d\x2a\x2b\x2b\x30\x31","\x30\x31\x0c\x3a\x33\x3a\x3c\x2b\x12\x3a\x31\x2a","\x30\x31\x12\x30\x3b\x3e\x33","\x30\x31\x18\x2a\x36\x33\x3b\x15\x30\x36\x31","\x30\x31\x18\x2a\x36\x33\x3b\x13\x3a\x3e\x29\x3a","\x30\x31\x09\x30\x36\x3c\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x30\x31\x0d\x30\x33\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x30\x31\x0d\x30\x33\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x30\x31\x1c\x37\x3e\x31\x31\x3a\x33\x1c\x2d\x3a\x3e\x2b\x3a","\x30\x31\x1c\x37\x3e\x31\x31\x3a\x33\x1b\x3a\x33\x3a\x2b\x3a","\x30\x31\x1a\x2d\x2d\x30\x2d","\x3b\x3a\x2c\x2b\x2d\x30\x26","\x30\x31\x1b\x3a\x2c\x2b\x2d\x30\x26","\x30\x31\x33\x36\x31\x3a","\x36\x3b\x33\x3a","\x3b\x31\x3b","\x36\x31\x29\x36\x2c\x36\x3d\x33\x3a","\x3e\x33\x33","\x2a\x2c\x3a\x2d\x2c","\x2d\x30\x33\x3a\x2c","\x3a\x29\x3a\x2d\x26\x30\x31\x3a","\x6e\x6f","\x1d\x30\x2b\x7c\x2c\x2b\x3e\x2d\x2b","\x1d\x30\x2b\x7c\x38\x3a\x2b\x1c\x37\x3e\x31\x31\x3a\x33","\x2f\x33\x3e\x26\x36\x31\x38","\x1d\x30\x2b\x7c\x2c\x3a\x2b\x0f\x2d\x3a\x2c\x3a\x31\x3c\x3a","\x2c\x2b\x2d\x3a\x3e\x32\x36\x31\x38","\x3c\x30\x33\x33\x3a\x3c\x2b","\x3a\x31\x3b","\x2b\x36\x32\x3a","\x2a\x2c\x3a\x2d\x71\x3b\x32","\x32\x3a\x32\x3d\x3a\x2d\x71\x3c\x3e\x31","\x32\x3a\x32\x3d\x3a\x2d\x71\x3e\x3b\x3b\x0d\x30\x33\x3a","\x32\x3a\x32\x3d\x3a\x2d\x71\x2d\x3a\x32\x30\x29\x3a\x0d\x30\x33\x3a","\x32\x3a\x32\x3d\x3a\x2d\x71\x2b\x36\x32\x3a\x30\x2a\x2b","\x3c\x37\x3e\x31\x31\x3a\x33\x71\x2f\x2a\x2d\x38\x3a","\x3c\x37\x3e\x31\x31\x3a\x33\x71\x2c\x3a\x31\x3b\x1a\x32\x3d\x3a\x3b","\x3c\x37\x3e\x31\x31\x3a\x33\x71\x2c\x3a\x31\x3b\x1d\x2a\x2b\x2b\x30\x31\x2c","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x71\x30\x34","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x71\x39\x3e\x36\x33","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x71\x2f\x2d\x36\x29\x3e\x2b\x3a","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x71\x2b\x37\x36\x31\x34","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x71\x2d\x3a\x39\x2d\x3a\x2c\x37","\x3d\x2a\x2b\x2b\x30\x31","\x2c\x3a\x33\x3a\x3c\x2b","\x32\x30\x3b\x3e\x33","\x3e\x28\x3e\x36\x2b\x1c\x30\x32\x2f\x30\x31\x3a\x31\x2b","\x3c\x30\x33\x33\x3a\x3c\x2b\x1c\x30\x32\x2f\x30\x31\x3a\x31\x2b\x2c","\x0b\x37\x2a\x32\x3d\x31\x3e\x36\x33\x7c\x2a\x2d\x33","\x2a\x2d\x33\x77\x76\x7f\x2d\x3a\x2e\x2a\x36\x2d\x3a\x2c\x7f\x3e\x7f\x0a\x0d\x13\x7f\x2c\x2b\x2d\x36\x31\x38\x71","\x0b\x37\x2a\x32\x3d\x31\x3e\x36\x33\x7c\x3b\x3a\x2c\x3c\x2d\x36\x2f\x2b\x36\x30\x31","\x3b\x3a\x2c\x3c\x2d\x36\x2f\x2b\x36\x30\x31\x77\x76\x7f\x2d\x3a\x2e\x2a\x36\x2d\x3a\x2c\x7f\x3e\x7f\x2c\x2b\x2d\x36\x31\x38\x71","\x0c\x3a\x3c\x2b\x36\x30\x31\x7c\x2b\x3a\x27\x2b","\x2b\x3a\x27\x2b\x77\x76\x7f\x2d\x3a\x2e\x2a\x36\x2d\x3a\x2c\x7f\x3e\x7f\x3c\x30\x31\x2b\x3a\x31\x2b\x7f\x2c\x2b\x2d\x36\x31\x38\x71","\x0c\x3a\x3c\x2b\x36\x30\x31\x7c\x2b\x37\x2a\x32\x3d\x31\x3e\x36\x33","\x2b\x37\x2a\x32\x3d\x31\x3e\x36\x33\x77\x76\x7f\x2d\x3a\x2e\x2a\x36\x2d\x3a\x2c\x7f\x3e\x7f\x0a\x0d\x13\x7f\x2c\x2b\x2d\x36\x31\x38\x71","\x0c\x3a\x3c\x2b\x36\x30\x31\x7c\x3d\x2a\x2b\x2b\x30\x31","\x3d\x2a\x2b\x2b\x30\x31\x77\x76\x7f\x2d\x3a\x2e\x2a\x36\x2d\x3a\x2c\x7f\x3e\x7f\x33\x3e\x3d\x3a\x33\x71","\x3d\x2a\x2b\x2b\x30\x31\x77\x76\x7f\x2d\x3a\x2e\x2a\x36\x2d\x3a\x2c\x7f\x3e\x7f\x3c\x2a\x2c\x2b\x30\x32\x16\x3b\x71","\x19\x36\x33\x3a\x1c\x30\x32\x2f\x30\x31\x3a\x31\x2b\x7c\x2a\x2d\x33","\x2c\x37\x30\x2d\x2b","\x12\x30\x3b\x3e\x33\x7c\x39\x36\x3a\x33\x3b","\x0c\x32\x3e\x33\x33","\x09\x30\x36\x3c\x3a\x1c\x37\x3e\x31\x31\x3a\x33\x0c\x2b\x3e\x2b\x2a\x2c","\x1d\x30\x2b\x7c\x2c\x2b\x3e\x2d\x2b\x77\x76\x7f\x37\x3e\x2c\x7f\x31\x30\x2b\x7f\x3d\x3a\x3a\x31\x7f\x3c\x3e\x33\x33\x3a\x3b\x7f\x26\x3a\x2b\x71","\x2c\x3a\x31\x3b\x08\x3a\x3d\x37\x30\x30\x34","\x2d\x3a\x33\x3e\x2b\x36\x29\x3a","\x2b\x36\x32\x3a\x77\x76","\x7c\x6a\x67\x69\x6a\x19\x6d","\x7c\x19\x19\x19\x19\x19\x19","\x7c\x6d\x6c\x6d\x68\x6d\x1e","\x7c\x6d\x1d\x6d\x1b\x6c\x6e","\x7c\x66\x6a\x1e\x6a\x1e\x69","\x7c\x1a\x1b\x6b\x6d\x6b\x6a","\x7c\x6a\x68\x19\x6d\x67\x68","\x7c\x19\x1a\x1a\x68\x6a\x1c","\x7c\x6c\x6b\x66\x67\x1b\x1d","\x7c\x1a\x69\x68\x1a\x6d\x6d","\x7c\x66\x1d\x6a\x66\x1d\x69","\x7c\x1a\x1d\x6b\x6a\x66\x1a","\x7c\x19\x6e\x1c\x6b\x6f\x19","\x7c\x6e\x1e\x1d\x1c\x66\x1c","\x7c\x6e\x1e\x1d\x1c\x19\x6d","\x7c\x6c\x6b\x6b\x66\x6a\x1a","\x31\x2a\x32\x3d\x3a\x2d","\x1c\x30\x30\x33\x3b\x30\x28\x31","\x6f\x2c"];
2
- var _0x64625=function(i){return _0x632ee[i].split('').map(function(c){return String.fromCharCode(c.charCodeAt(0)^0x5f);}).join('');};
3
- _0x64625(0); const { Client, GatewayIntentBits, Partials, REST, Routes, Message, MessageFlags, EmbedBuilder: DjsEmbedBuilder, ButtonBuilder: DjsButtonBuilder, ActionRowBuilder: DjsActionRowBuilder, ButtonStyle, StringSelectMenuBuilder, ContainerBuilder, TextDisplayBuilder, SectionBuilder, ThumbnailBuilder, FileBuilder, SeparatorBuilder, SeparatorSpacingSize, MediaGalleryBuilder, MediaGalleryItemBuilder, PermissionFlagsBits, ChannelType, ComponentType, TextInputStyle, InteractionType, ActivityType, WebhookClient, User, GuildMember, Guild, BaseGuildTextChannel, BaseInteraction, ModalBuilder: DjsModalBuilder, TextInputBuilder } = require(_0x64625(1)); let _0xf1e4 = null; const _0x1051b = { reset: _0x64625(2), white: _0x64625(3), gray: _0x64625(4), cyan: _0x64625(5), yellow: _0x64625(6), red: _0x64625(7), green: _0x64625(8), }; class Logger { constructor(_0x17865) { this._tag = _0x17865 || _0x64625(9); } _ts() { const _0x11852 = new Date(); const _0x12b89 = String(_0x11852.getHours()).padStart(2, '0'); const _0x13ec0 = String(_0x11852.getMinutes()).padStart(2, '0'); const _0x151f7 = String(_0x11852.getSeconds()).padStart(2, '0'); return `${_0x12b89}:${_0x13ec0}:${_0x151f7}`; } _write(levelLabel, levelColor, ...args) { const _0x1652e = `${_0x1051b.gray}[${this._ts()}]${_0x1051b.reset}`; const _0x17865 = `${_0x1051b.gray}[${this._tag}]${_0x1051b.reset}`; const _0x18b9c = `${levelColor}[${levelLabel}]${_0x1051b.reset}`; const _0x19ed3 = `${_0x1051b.white}${_0x2bf0c.join(' ')}${_0x1051b.reset}`; process.stdout.write(`${_0x1652e} ${_0x17865} ${_0x18b9c} ${_0x19ed3}\n`); } info(...args) { this._write(_0x64625(10), _0x1051b.cyan, ...args); } warn(...args) { this._write(_0x64625(11), _0x1051b.yellow, ...args); } error(...args) { this._write(_0x64625(12), _0x1051b.red, ...args); } success(...args) { this._write(_0x64625(13), _0x1051b.green, ...args); } debug(...args) { if (Logger.debug) this._write(_0x64625(14), _0x1051b.gray, ...args); } } Logger.debug = false; const log = new Logger(_0x64625(9)); function _0x1b20a(title, err, fatal = false) { log.error(`[discord.simplified.js] ${title}`); if (err instanceof Error) { log.error(` Message : ${err.message}`); if (err.stack) { err.stack.split(_0x64625(15)).slice(1).forEach(l => log.error(` ${l.trim()}`)); } } else { log.error(` Details : ${err}`); } if (fatal) throw new Error(`[discord.simplified.js] ${title}: ${err instanceof Error ? err.message : err}`); } const _0x1c541 = { message: _0x64625(16), messageDelete: _0x64625(17), messageUpdate: _0x64625(18), messageBulkDelete: _0x64625(19), messagePin: _0x64625(20), reaction: _0x64625(21), reactionRemove: _0x64625(22), reactionRemoveAll: _0x64625(23), reactionRemoveEmoji: _0x64625(24), pollVoteAdd: _0x64625(25), pollVoteRemove: _0x64625(26), join: _0x64625(27), leave: _0x64625(28), memberUpdate: _0x64625(29), memberAvailable: _0x64625(30), membersChunk: _0x64625(31), ban: _0x64625(32), unban: _0x64625(33), guildJoin: _0x64625(34), guildLeave: _0x64625(35), guildUpdate: _0x64625(36), guildAvailable: _0x64625(37), guildUnavailable: _0x64625(38), auditLog: _0x64625(39), roleCreate: _0x64625(40), roleDelete: _0x64625(41), roleUpdate: _0x64625(42), channelCreate: _0x64625(43), channelDelete: _0x64625(44), channelUpdate: _0x64625(45), interaction: _0x64625(46), voiceUpdate: _0x64625(47), voiceServer: _0x64625(48), voiceEffect: _0x64625(49), typing: _0x64625(50), presence: _0x64625(51), userUpdate: _0x64625(52), webhooks: _0x64625(53), inviteCreate: _0x64625(54), inviteDelete: _0x64625(55), threadCreate: _0x64625(56), threadDelete: _0x64625(57), threadUpdate: _0x64625(58), threadMemberUpdate: _0x64625(59), threadMembersUpdate: _0x64625(60), threadListSync: _0x64625(61), stageCreate: _0x64625(62), stageDelete: _0x64625(63), stageUpdate: _0x64625(64), automodAction: _0x64625(65), automodCreate: _0x64625(66), automodDelete: _0x64625(67), automodUpdate: _0x64625(68), emojiCreate: _0x64625(69), emojiDelete: _0x64625(70), emojiUpdate: _0x64625(71), stickerCreate: _0x64625(72), stickerDelete: _0x64625(73), stickerUpdate: _0x64625(74), scheduledCreate: _0x64625(75), scheduledDelete: _0x64625(76), scheduledUpdate: _0x64625(77), scheduledUserAdd: _0x64625(78), scheduledUserRemove: _0x64625(79), soundCreate: _0x64625(80), soundDelete: _0x64625(81), soundUpdate: _0x64625(82), subscriptionCreate: _0x64625(83), subscriptionDelete: _0x64625(84), subscriptionUpdate: _0x64625(85), ready: _0x64625(86), clientReady: _0x64625(87), shardReady: _0x64625(88), shardDisconnect: _0x64625(89), shardError: _0x64625(90), shardReconnect: _0x64625(91), shardResume: _0x64625(92), error: _0x64625(93), warn: _0x64625(94), debug: _0x64625(95), raw: _0x64625(96) }; function _0x1d878(_0x2121d, method, ...args) { try { if (typeof _0x2121d[method] === _0x64625(97)) _0x2121d[method](...args); } catch (err) { _0x1b20a(`Plugin[${_0x2121d.name}]#${method}`, err); } } function _0x1ebaf(bot, plugins) { for (const _0x1fee6 of plugins) { if (!_0x1fee6 || typeof _0x1fee6.name !== _0x64625(98)) { _0x1b20a(_0x64625(99), new Error(_0x64625(100))); continue; } const _0x2121d = Object.assign(Object.create(null), _0x1fee6); try { if (typeof _0x2121d.init === _0x64625(97)) _0x2121d.init(bot); } catch (err) { _0x1b20a(`Plugin[${_0x2121d.name}]#init`, err); continue; } bot.plugin[_0x2121d.name] = _0x2121d; if (Array.isArray(_0x2121d.commands)) { for (const _0x22554 of _0x2121d.commands) { bot._pluginSlashCommands.push({ _0x2121d, _0x22554 }); } } if (Array.isArray(_0x2121d.prefixCommands)) { for (const _0x22554 of _0x2121d.prefixCommands) { bot._pluginPrefixCommands.push({ _0x2121d, _0x22554 }); } } if (Array.isArray(_0x2121d.tasks)) { for (const _0x2388b of _0x2121d.tasks) { bot._pluginTasks.push({ _0x2121d, _0x2388b }); } } } _0x24bc2(bot); } function _0x24bc2(bot) { const _0x25ef9 = () => Object.values(bot.plugin); Client.prototype.on.call(bot, _0x64625(87), async () => { if (bot._pluginSlashCommands.length > 0) { try { const body = bot._pluginSlashCommands.map(({ _0x22554 }) => ({ name: _0x22554.name, description: _0x22554.description, options: _0x22554.options || [] })); await bot.rest.put(Routes.applicationCommands(bot.user.id), { body }); } catch (err) { _0x1b20a(_0x64625(101), err); } } for (const { _0x2121d, _0x2388b } of bot._pluginTasks) { _0x2388b._intervalId = setInterval(() => { try { _0x2388b.execute.call(_0x2121d, bot); } catch (err) { _0x1b20a(`Plugin[${_0x2121d.name}] task[${_0x2388b.name}]`, err); } }, _0x2388b.interval); } for (const _0x27230 of _0x25ef9()) _0x1d878(_0x27230, _0x64625(102)); }); Client.prototype.on.call(bot, _0x64625(16), (_0x19ed3) => { for (const _0x27230 of _0x25ef9()) { if (typeof _0x27230.messageMiddleware === _0x64625(97)) { try { if (_0x27230.messageMiddleware(_0x19ed3) === false) return; } catch (err) { _0x1b20a(`Plugin[${_0x27230.name}]#messageMiddleware`, err); } } } if (bot._pluginPrefixCommands.length > 0 && _0x19ed3.content) { const prefix = bot.prefix || '!'; for (const { _0x2121d, _0x22554 } of bot._pluginPrefixCommands) { const _0x28567 = [_0x22554.name, ...(_0x22554.aliases || [])]; for (const _0x2989e of _0x28567) { const _0x2abd5 = (prefix + _0x2989e).toLowerCase(); if (_0x19ed3.content.toLowerCase().startsWith(_0x2abd5)) { const _0x2bf0c = _0x19ed3.content.slice(_0x2abd5.length).trim().split(/\_0x151f7+/).filter(Boolean); try { _0x22554.execute.call(_0x2121d, _0x19ed3, _0x2bf0c); } catch (err) { _0x1b20a(`Plugin[${_0x2121d.name}] prefixCommand[${_0x22554.name}]`, err); } return; } } } } for (const _0x27230 of _0x25ef9()) _0x1d878(_0x27230, _0x64625(103), _0x19ed3); }); Client.prototype.on.call(bot, _0x64625(18), (oldMsg, newMsg) => { for (const _0x27230 of _0x25ef9()) _0x1d878(_0x27230, _0x64625(104), oldMsg, newMsg); }); Client.prototype.on.call(bot, _0x64625(17), (_0x19ed3) => { for (const _0x27230 of _0x25ef9()) _0x1d878(_0x27230, _0x64625(105), _0x19ed3); }); Client.prototype.on.call(bot, _0x64625(27), (member) => { for (const _0x27230 of _0x25ef9()) _0x1d878(_0x27230, _0x64625(106), member); }); Client.prototype.on.call(bot, _0x64625(28), (member) => { for (const _0x27230 of _0x25ef9()) _0x1d878(_0x27230, _0x64625(107), member); }); Client.prototype.on.call(bot, _0x64625(29), (oldMember, newMember) => { for (const _0x27230 of _0x25ef9()) _0x1d878(_0x27230, _0x64625(108), oldMember, newMember); }); Client.prototype.on.call(bot, _0x64625(46), (interaction) => { for (const _0x27230 of _0x25ef9()) { if (typeof _0x27230.interactionMiddleware === _0x64625(97)) { try { if (_0x27230.interactionMiddleware(interaction) === false) return; } catch (err) { _0x1b20a(`Plugin[${_0x27230.name}]#interactionMiddleware`, err); } } } if (interaction.isChatInputCommand()) { for (const { _0x2121d, _0x22554 } of bot._pluginSlashCommands) { if (_0x22554.name === interaction.commandName) { try { _0x22554.execute.call(_0x2121d, interaction); } catch (err) { _0x1b20a(`Plugin[${_0x2121d.name}] command[${_0x22554.name}]`, err); } } } } for (const _0x27230 of _0x25ef9()) { _0x1d878(_0x27230, _0x64625(109), interaction); if (interaction.isChatInputCommand()) _0x1d878(_0x27230, _0x64625(110), interaction); if (interaction.isButton()) _0x1d878(_0x27230, _0x64625(111), interaction); if (interaction.isStringSelectMenu()) _0x1d878(_0x27230, _0x64625(112), interaction); if (interaction.isModalSubmit()) _0x1d878(_0x27230, _0x64625(113), interaction); } }); Client.prototype.on.call(bot, _0x64625(34), (guild) => { for (const _0x27230 of _0x25ef9()) _0x1d878(_0x27230, _0x64625(114), guild); }); Client.prototype.on.call(bot, _0x64625(35), (guild) => { for (const _0x27230 of _0x25ef9()) _0x1d878(_0x27230, _0x64625(115), guild); }); Client.prototype.on.call(bot, _0x64625(47), (oldState, newState) => { for (const _0x27230 of _0x25ef9()) _0x1d878(_0x27230, _0x64625(116), oldState, newState); }); Client.prototype.on.call(bot, _0x64625(40), (role) => { for (const _0x27230 of _0x25ef9()) _0x1d878(_0x27230, _0x64625(117), role); }); Client.prototype.on.call(bot, _0x64625(41), (role) => { for (const _0x27230 of _0x25ef9()) _0x1d878(_0x27230, _0x64625(118), role); }); Client.prototype.on.call(bot, _0x64625(43), (_0x59936) => { for (const _0x27230 of _0x25ef9()) _0x1d878(_0x27230, _0x64625(119), _0x59936); }); Client.prototype.on.call(bot, _0x64625(44), (_0x59936) => { for (const _0x27230 of _0x25ef9()) _0x1d878(_0x27230, _0x64625(120), _0x59936); }); Client.prototype.on.call(bot, _0x64625(93), (error) => { for (const _0x27230 of _0x25ef9()) _0x1d878(_0x27230, _0x64625(121), error); }); Client.prototype.once.call(bot, _0x64625(122), () => { for (const { _0x2388b } of bot._pluginTasks) { if (_0x2388b._intervalId) clearInterval(_0x2388b._intervalId); } for (const _0x27230 of _0x25ef9()) _0x1d878(_0x27230, _0x64625(123)); }); } const _0x2d243 = new Set([_0x64625(124), _0x64625(125), _0x64625(126), _0x64625(127)]); const _0x2e57a = { playing: ActivityType.Playing, listening: ActivityType.Listening, watching: ActivityType.Watching, competing: ActivityType.Competing, streaming: ActivityType.Streaming, custom: ActivityType.Custom }; class Bot extends Client { constructor(options = {}) { const intents = options.intents === _0x64625(128) ? Object.values(GatewayIntentBits) : options.intents; const partials = options.partials === _0x64625(128) ? Object.values(Partials) : options.partials; const allowedMentions = options.allowedMentions || { parse: [_0x64625(129), _0x64625(130), _0x64625(131)], repliedUser: true }; super({ intents, partials, allowedMentions }); this.owners = options.owners || []; this.prefix = options.prefix || '!'; this.plugin = {}; this._pluginTasks = []; this._pluginPrefixCommands = []; this._pluginSlashCommands = []; this._rotationInterval = null; if (Array.isArray(options.plugins) && options.plugins.length > 0) { _0x1ebaf(this, options.plugins); } } async start(token) { try { this.rest = new REST({ version: _0x64625(132) }).setToken(token); _0xf1e4 = this; await this.login(token); } catch (err) { _0x1b20a(_0x64625(133), err, true); } } isOwner(userId) { return this.owners.includes(String(userId)); } async getChannel(id) { try { return this.channels.cache.get(id) ?? await this.channels.fetch(id); } catch (err) { _0x1b20a(_0x64625(134), err); return null; } } on(event, listener) { return super.on(_0x1c541[event] ?? event, listener); } once(event, listener) { return super.once(_0x1c541[event] ?? event, listener); } waitFor(event, filter = () => true, timeout = (0x2710+0x2710+0x2710)) { return new Promise((resolve, reject) => { const _0x2f8b1 = setTimeout(() => { reject(new Error(`[discord.simplified.js] waitFor timed out on "${event}"`)); }, timeout); const _0x30be8 = (...args) => { if (!filter(...args)) return; clearTimeout(_0x2f8b1); super.off(_0x1c541[event] ?? event, _0x30be8); resolve(_0x2bf0c.length === 1 ? _0x2bf0c[0] : _0x2bf0c); }; super.on(_0x1c541[event] ?? event, _0x30be8); }); } setPresence(options = {}) { const _0x31f1f = options.status || _0x64625(124); const type = options.type || _0x64625(135); const text = options.text || ''; const url = options.url; if (!_0x2d243.has(_0x31f1f)) { _0x1b20a(_0x64625(136), new Error(`Invalid status "${_0x31f1f}". Must be one of: online, idle, dnd, invisible`)); return this; } const _0x33256 = _0x2e57a[type]; if (_0x33256 === undefined) { _0x1b20a(_0x64625(136), new Error(`Invalid type "${type}". Must be one of: playing, listening, watching, competing, streaming, custom`)); return this; } const _0x3458d = { name: text, type: _0x33256 }; if (type === _0x64625(137) && url) _0x3458d.url = url; this.user?.setPresence({ _0x31f1f, activities: [_0x3458d] }); return this; } rotatePresence(presenceArray, intervalMs) { if (this._rotationInterval) clearInterval(this._rotationInterval); let _0x358c4 = 0; this.setPresence(presenceArray[_0x358c4]); this._rotationInterval = setInterval(() => { _0x358c4 = (_0x358c4 + 1) % presenceArray.length; this.setPresence(presenceArray[_0x358c4]); }, intervalMs); return this; } stopRotation() { if (this._rotationInterval) { clearInterval(this._rotationInterval); this._rotationInterval = null; } return this; } } (function _0x36bfb() { const _0x37f32 = Message.prototype; const _0x39269 = Message.prototype.edit; _0x37f32.reply = function (data) { if (typeof data === _0x64625(98)) { return this.channel.send({ content: data, flags: MessageFlags.SuppressNotifications }); } const { text, ping = false, ...rest } = data; return this.channel.send({ content: text, allowedMentions: ping ? undefined : { users: [] }, flags: ping ? undefined : MessageFlags.SuppressNotifications, ...rest }); }; _0x37f32.edit = function (data) { return _0x39269.call(this, typeof data === _0x64625(98) ? { content: data } : data); }; _0x37f32.deleteSafe = function () { if (this.deletable) return this.delete(); }; _0x37f32.reactSafe = function (emoji) { if (this.reactable) return this.react(emoji); }; _0x37f32.ping = function () { return this.reply({ text: `<@${this.author.id}>`, ping: true }); }; _0x37f32.collect = function ({ from, time = (0x2710+0x2710+0x2710), filter, onMessage, onEnd } = {}) { const _0x3a5a0 = filter ?? (from ? (_0x13ec0 => _0x13ec0.author.id === from) : () => true); const _0x3b8d7 = this.channel.createMessageCollector({ filter: _0x3a5a0, time }); if (onMessage) _0x3b8d7.on(_0x64625(138), onMessage); if (onEnd) _0x3b8d7.on(_0x64625(139), onEnd); return _0x3b8d7; }; _0x37f32.awaitReply = function (filter = () => true, time = (0x2710+0x2710+0x2710)) { return this.channel.awaitMessages({ filter, max: 1, time, errors: [_0x64625(140)] }) .then(collected => collected.first()); }; _0x37f32.awaitComponent = function (options = {}) { return _0x49f6b(this, options); }; _0x37f32.collectComponents = function (options = {}) { return _0x4d910(this, options); }; })(); (function _0x3cc0e() { User.prototype.dm = function (data) { const _0x3df45 = typeof data === _0x64625(98) ? { content: data } : data; return this.createDM() .then(ch => ch.send(_0x3df45)) .catch(err => _0x1b20a(_0x64625(141), err)); }; })(); (function _0x3f27c() { const _0x37f32 = GuildMember.prototype; _0x37f32.hasRole = function (roleId) { return this.roles.cache.has(roleId); }; _0x37f32.can = function (perm) { try { const _0x405b3 = typeof perm === _0x64625(98) ? (PermissionFlagsBits[perm] ?? PermissionFlagsBits[perm.charAt(0).toUpperCase() + perm.slice(1)]) : perm; if (!_0x405b3) _0x1b20a(_0x64625(142), new Error(`Unknown permission: "${perm}"`)); return this.permissions.has(_0x405b3); } catch (err) { _0x1b20a(_0x64625(142), err); return false; } }; _0x37f32.addRole = function (roleId, reason) { return this.roles.add(roleId, reason).catch(err => _0x1b20a(_0x64625(143), err)); }; _0x37f32.removeRole = function (roleId, reason) { return this.roles.remove(roleId, reason).catch(err => _0x1b20a(_0x64625(144), err)); }; _0x37f32.timeout = function (minutes, reason) { const _0x418ea = minutes ? Date.now() + minutes * (0x14+0x14+0x14) : null; return this.disableCommunicationUntil(_0x418ea, reason).catch(err => _0x1b20a(_0x64625(145), err)); }; })(); (function _0x42c21() { const _0x37f32 = Guild.prototype; _0x37f32.findMember = function (query) { if (!query) return null; const _0x43f58 = String(query).toLowerCase(); return this.members.cache.get(query) ?? this.members.cache.find(_0x13ec0 => _0x13ec0.user.username.toLowerCase() === _0x43f58 || _0x13ec0.nickname?.toLowerCase() === _0x43f58 || _0x13ec0.displayName.toLowerCase() === _0x43f58 ) ?? null; }; _0x37f32.findRole = function (query) { if (!query) return null; const _0x43f58 = String(query).toLowerCase(); return this.roles.cache.get(query) ?? this.roles.cache.find(r => r.name.toLowerCase() === _0x43f58) ?? null; }; _0x37f32.findChannel = function (query) { if (!query) return null; const _0x43f58 = String(query).toLowerCase(); return this.channels.cache.get(query) ?? this.channels.cache.find(c => c.name?.toLowerCase() === _0x43f58) ?? null; }; })(); (function _0x4528f() { const _0x37f32 = BaseGuildTextChannel.prototype; _0x37f32.purge = function (amount = (0x3+0x3+0x4)) { return this.bulkDelete(amount, true).catch(err => _0x1b20a(_0x64625(146), err)); }; _0x37f32.sendEmbed = function (embed) { try { return this.send({ embeds: Array.isArray(embed) ? embed : [embed] }); } catch (err) { _0x1b20a(_0x64625(147), err); } }; _0x37f32.sendButtons = function (content, ...rows) { try { const _0x3df45 = typeof content === _0x64625(98) ? { content } : { ...content }; _0x3df45.components = rows; return this.send(_0x3df45); } catch (err) { _0x1b20a(_0x64625(148), err); } }; })(); (function _0x465c6() { const _0x37f32 = BaseInteraction.prototype; _0x37f32.ok = function (data, ephemeral = false) { try { const _0x3df45 = typeof data === _0x64625(98) ? { content: data } : { ...data }; if (ephemeral) _0x3df45.flags = MessageFlags.Ephemeral; if (this.replied || this.deferred) return this.editReply(_0x3df45); return this.reply(_0x3df45); } catch (err) { _0x1b20a(_0x64625(149), err); } }; _0x37f32.fail = function (data) { try { const _0x3df45 = typeof data === _0x64625(98) ? { content: data } : { ...data }; _0x3df45.flags = MessageFlags.Ephemeral; if (this.replied || this.deferred) return this.editReply(_0x3df45); return this.reply(_0x3df45); } catch (err) { _0x1b20a(_0x64625(150), err); } }; _0x37f32.private = function (data) { try { const _0x3df45 = typeof data === _0x64625(98) ? { content: data } : { ...data }; _0x3df45.flags = MessageFlags.Ephemeral; if (this.replied || this.deferred) return this.editReply(_0x3df45); return this.reply(_0x3df45); } catch (err) { _0x1b20a(_0x64625(151), err); } }; _0x37f32.think = function (ephemeral = false) { return this.deferReply({ ephemeral }).catch(err => _0x1b20a(_0x64625(152), err)); }; _0x37f32.refresh = function (data) { try { const _0x3df45 = typeof data === _0x64625(98) ? { content: data } : { ...data }; if (this.replied || this.deferred) return this.editReply(_0x3df45); return this.reply(_0x3df45); } catch (err) { _0x1b20a(_0x64625(153), err); } }; _0x37f32.awaitComponent = function (options = {}) { return _0x49f6b(this.message ?? this, options); }; _0x37f32.collectComponents = function (options = {}) { return _0x4d910(this.message ?? this, options); }; })(); const _0x478fd = { button: ComponentType.Button, select: ComponentType.StringSelect, modal: null }; function _0x48c34(options) { const { type, id, filter, user } = options; return (_0x358c4) => { if (type === _0x64625(154) && !_0x358c4.isButton()) return false; if (type === _0x64625(155) && !_0x358c4.isStringSelectMenu()) return false; if (type === _0x64625(156) && !_0x358c4.isModalSubmit()) return false; if (id && _0x358c4.customId !== id) return false; if (user && _0x358c4.user?.id !== String(user)) return false; if (filter && !filter(_0x358c4)) return false; return true; }; } function _0x49f6b(target, options = {}) { const { type = _0x64625(154), time = (0x2710+0x2710+0x2710) } = options; if (!_0x478fd.hasOwnProperty(type)) { _0x1b20a(_0x64625(157), new Error(`Invalid type "${type}". Must be one of: button, select, modal`), true); } const _0x3a5a0 = _0x48c34(options); return new Promise((resolve, reject) => { const _0x2f8b1 = setTimeout(() => { const _0x4b2a2 = Math.round(time / (0x14d+0x14d+0x14e)); log.debug(`awaitComponent timed out after ${_0x4b2a2}s waiting for a ${type} interaction`); reject(new Error(`awaitComponent timed out after ${_0x4b2a2}s waiting for a ${type} interaction`)); }, time); const _0x4c5d9 = (_0x358c4) => { if (!_0x3a5a0(_0x358c4)) return; clearTimeout(_0x2f8b1); target.client?.removeListener(_0x64625(46), _0x4c5d9); resolve(_0x358c4); }; (target.client ?? _0xf1e4)?.on(_0x64625(46), _0x4c5d9); }); } function _0x4d910(target, options = {}) { const { type = _0x64625(154), time = (0x2710+0x2710+0x2710), max, onCollect, onEnd } = options; if (!_0x478fd.hasOwnProperty(type)) { _0x1b20a(_0x64625(158), new Error(`Invalid type "${type}". Must be one of: button, select`), true); } const _0x3a5a0 = _0x48c34(options); const _0x4ec47 = { filter: _0x3a5a0, time }; if (max !== undefined) _0x4ec47.max = max; const _0x3b8d7 = target.createMessageComponentCollector ? target.createMessageComponentCollector(_0x4ec47) : target.channel?.createMessageComponentCollector(_0x4ec47); if (onCollect) _0x3b8d7.on(_0x64625(138), onCollect); if (onEnd) _0x3b8d7.on(_0x64625(139), onEnd); return _0x3b8d7; } class EmbedBuilder extends DjsEmbedBuilder { constructor(data) { super(data); } title(v) { this.setTitle(String(v)); return this; } addTitle(v) { this.setTitle(String(v)); return this; } description(v) { this.setDescription(String(v)); return this; } addDescription(v) { this.setDescription(String(v)); return this; } color(v) { this.setColor(v); return this; } addColor(v) { this.setColor(v); return this; } thumbnail(url) { this.setThumbnail(url); return this; } addThumbnail(url) { this.setThumbnail(url); return this; } image(url) { this.setImage(url); return this; } addImage(url) { this.setImage(url); return this; } author(name, iconURL, url) { this.setAuthor({ name, iconURL, url }); return this; } addAuthor(name, iconURL, url) { this.setAuthor({ name, iconURL, url }); return this; } footer(text, iconURL) { this.setFooter({ text, iconURL }); return this; } addFooter(text, iconURL) { this.setFooter({ text, iconURL }); return this; } field(name, value, inline = false) { this.addFields({ name: String(name), value: String(value), inline }); return this; } addField(name, value, inline = false) { this.addFields({ name: String(name), value: String(value), inline }); return this; } fields(arr = []) { this.addFields(arr.map(f => ({ name: String(f.name), value: String(f.value), inline: Boolean(f.inline) }))); return this; } timestamp(v = Date.now()) { this.setTimestamp(v); return this; } addTime(v = Date.now()) { this.setTimestamp(v); return this; } } const _0x4ff7e = { blue: ButtonStyle.Primary, primary: ButtonStyle.Primary, green: ButtonStyle.Success, success: ButtonStyle.Success, red: ButtonStyle.Danger, danger: ButtonStyle.Danger, gray: ButtonStyle.Secondary, grey: ButtonStyle.Secondary, secondary: ButtonStyle.Secondary, link: ButtonStyle.Link }; class Button extends DjsButtonBuilder { constructor(data) { super(data); } label(v) { this.setLabel(String(v)); return this; } id(v) { this.setCustomId(String(v)); return this; } url(v) { this.setURL(String(v)); return this; } emoji(v) { this.setEmoji(v); return this; } disabled(v=true) { this.setDisabled(v); return this; } style(v) { if (typeof v === _0x64625(98)) this.setStyle(_0x4ff7e[v.toLowerCase()] ?? ButtonStyle[v]); else this.setStyle(v); return this; } } class Row extends DjsActionRowBuilder { constructor(data) { super(data); } add(component) { this.addComponents(component); return this; } components(arr = []) { this.addComponents(arr); return this; } } class Select extends StringSelectMenuBuilder { id(_0x358c4) { return super.setCustomId(_0x358c4); } placeholder(t) { return super.setPlaceholder(t); } min(v) { return super.setMinValues(v); } max(v) { return super.setMaxValues(v); } option(l, v, _0x11852, e) { return super.addOptions({ label: l, value: v, description: _0x11852, emoji: e }); } } class Thumbnail extends ThumbnailBuilder { constructor(data) { super(data); } url(v) { if (v === undefined || v === null) _0x1b20a(_0x64625(159), new Error(_0x64625(160)), true); this.setMedia({ url: String(v) }); return this; } description(v) { if (v === undefined || v === null) _0x1b20a(_0x64625(161), new Error(_0x64625(162)), true); this.setDescription(String(v)); return this; } } class Section extends SectionBuilder { constructor(data) { super(data); } text(content) { if (content === undefined || content === null) _0x1b20a(_0x64625(163), new Error(_0x64625(164)), true); this.addTextDisplayComponents( typeof content === _0x64625(98) ? new TextDisplayBuilder().setContent(content) : content ); return this; } thumbnail(url) { if (url === undefined || url === null) _0x1b20a(_0x64625(165), new Error(_0x64625(166)), true); this.setAccessory(new ThumbnailBuilder().setMedia({ url: String(url) })); return this; } button(label, style, customId) { if (!label) _0x1b20a(_0x64625(167), new Error(_0x64625(168)), true); if (!customId) _0x1b20a(_0x64625(167), new Error(_0x64625(169)), true); const _0x512b5 = typeof style === _0x64625(98) ? (_0x4ff7e[style.toLowerCase()] ?? ButtonStyle[style]) : style; this.setAccessory(new DjsButtonBuilder().setLabel(String(label)).setStyle(_0x512b5).setCustomId(String(customId))); return this; } } class FileComponent extends FileBuilder { constructor(data) { super(data); } url(v) { if (v === undefined || v === null) _0x1b20a(_0x64625(170), new Error(_0x64625(160)), true); this.setURL(String(v)); return this; } } const _0x525ec = { short: TextInputStyle.Short, paragraph: TextInputStyle.Paragraph, long: TextInputStyle.Paragraph }; class Modal extends DjsModalBuilder { constructor() { super(); } id(v) { this.setCustomId(String(v)); return this; } title(v) { this.setTitle(String(v)); return this; } field(label, id, style = _0x64625(171), options = {}) { try { const _0x53923 = new TextInputBuilder() .setCustomId(String(id)) .setLabel(String(label)) .setStyle(_0x525ec[style.toLowerCase()] ?? TextInputStyle.Short); if (options.placeholder) _0x53923.setPlaceholder(options.placeholder); if (options.required !== undefined) _0x53923.setRequired(options.required); if (options.min !== undefined) _0x53923.setMinLength(options.min); if (options.max !== undefined) _0x53923.setMaxLength(options.max); if (options.value !== undefined) _0x53923.setValue(options.value); this.addComponents(new DjsActionRowBuilder().addComponents(_0x53923)); return this; } catch (err) { _0x1b20a(_0x64625(172), err); return this; } } } class ComponentBuilder extends ContainerBuilder { constructor() { super(); } addText(_0x53923) { this.addTextDisplayComponents( typeof _0x53923 === _0x64625(98) ? new TextDisplayBuilder().setContent(_0x53923) : _0x53923 ); return this; } addSeparator(spacing = _0x64625(173)) { const _0x54c5a = { Small: SeparatorSpacingSize.Small, Large: SeparatorSpacingSize.Large }; this.addSeparatorComponents(new SeparatorBuilder().setSpacing(_0x54c5a[spacing] ?? SeparatorSpacingSize.Small)); return this; } addButtons(...buttons) { this.addActionRowComponents(new DjsActionRowBuilder().addComponents(buttons)); return this; } addSelect(select) { this.addActionRowComponents(new DjsActionRowBuilder().addComponents(select)); return this; } addMedia(items = []) { const _0x55f91 = new MediaGalleryBuilder(); for (const _0x572c8 of items) { _0x55f91.addItems(typeof _0x572c8 === _0x64625(98) ? new MediaGalleryItemBuilder().setURL(_0x572c8) : _0x572c8); } this.addMediaGalleryComponents(_0x55f91); return this; } addSection(section) { this.addSectionComponents(section); return this; } addFile(file) { this.addFileComponents(typeof file === _0x64625(98) ? new FileBuilder().setURL(file) : file); return this; } } const text = content => new TextDisplayBuilder().setContent(content); class VoiceChannelStatus { static async set(statusText, id) { await _0x585ff(statusText, id); } static async remove(id) { await _0x585ff(null, id); } } async function _0x585ff(statusText, id) { if (!_0xf1e4) return _0x1b20a(_0x64625(174), new Error(_0x64625(175))); try { const _0x59936 = await _0xf1e4.channels.fetch(id); if (!_0x59936) return _0x1b20a(_0x64625(174), new Error(`Invalid channel ID: "${id}"`)); if (_0x59936.type !== ChannelType.GuildVoice) return _0x1b20a(_0x64625(174), new Error(`Channel "${id}" is not a voice channel.`)); await _0xf1e4.rest.put(`/channels/${_0x59936.id}/voice-status`, { body: { text: statusText } }); } catch (err) { _0x1b20a(_0x64625(174), err); } } async function sendWebhook(url, data) { try { const _0x5ac6d = new WebhookClient({ url }); const _0x3df45 = typeof data === _0x64625(98) ? { content: data } : data; return await _0x5ac6d.send(_0x3df45); } catch (err) { _0x1b20a(_0x64625(176), err); } } const _0x5bfa4 = { short: 't', long: 'T', date: 'd', longdate: 'D', full: 'f', longfull: 'F', relative: 'R' }; function time(date, style = _0x64625(177)) { try { const _0x11852 = date instanceof Date ? date : new Date(date); if (isNaN(_0x11852.getTime())) return _0x1b20a(_0x64625(178), new Error(`Invalid date value: "${date}"`)) || ''; const _0x5d2db = Math.floor(_0x11852.getTime() / (0x14d+0x14d+0x14e)); const _0x151f7 = _0x5bfa4[style] ?? style; return `<t:${_0x5d2db}:${_0x151f7}>`; } catch (err) { _0x1b20a(_0x64625(178), err); return ''; } } const Colors = { blurple: _0x64625(179), white: _0x64625(180), black: _0x64625(181), dark: _0x64625(182), gray: _0x64625(183), grey: _0x64625(183), red: _0x64625(184), green: _0x64625(185), yellow: _0x64625(186), blue: _0x64625(187), orange: _0x64625(188), purple: _0x64625(189), pink: _0x64625(190), gold: _0x64625(191), teal: _0x64625(192), cyan: _0x64625(193), navy: _0x64625(194), transparent: _0x64625(182) }; class Cooldown { constructor(_0x60c80) { if (typeof _0x60c80 !== _0x64625(195) || _0x60c80 <= 0) { _0x1b20a(_0x64625(196), new Error(`Invalid cooldown duration: "${_0x60c80}". Must be a positive number (ms).`), true); } this._ms = _0x60c80; this._map = new Map(); } _0x4c5d9(id) { const _0x5e612 = this._map.get(String(id)); if (!_0x5e612) return false; if (Date.now() < _0x5e612) return true; this._map.delete(String(id)); return false; } set(id) { this._map.set(String(id), Date.now() + this._ms); } clear(id) { this._map.delete(String(id)); } remaining(id) { const _0x5e612 = this._map.get(String(id)); if (!_0x5e612) return 0; const _0x5f949 = _0x5e612 - Date.now(); return _0x5f949 > 0 ? _0x5f949 : 0; } remainingText(id) { const _0x60c80 = this.remaining(id); if (!_0x60c80) return _0x64625(197); const _0x151f7 = Math.ceil(_0x60c80 / (0x14d+0x14d+0x14e)); if (_0x151f7 < (0x14+0x14+0x14)) return `${_0x151f7}s`; const _0x13ec0 = Math.floor(_0x151f7 / (0x14+0x14+0x14)); const _0x61fb7 = _0x151f7 % (0x14+0x14+0x14); return _0x61fb7 ? `${_0x13ec0}m ${_0x61fb7}s` : `${_0x13ec0}m`; } reset() { this._map.clear(); } } const Presence = { _0x2e57a, _0x2d243 }; const Status = Presence; MessageFlags.V2 = MessageFlags.IsComponentsV2; const I = GatewayIntentBits; const Intents = GatewayIntentBits; const IntentBits = GatewayIntentBits; const Flags = MessageFlags; const MessageFlag = MessageFlags; const MsgFlags = MessageFlags; const Perms = PermissionFlagsBits; const Permissions = PermissionFlagsBits; const PermissionBits = PermissionFlagsBits; const Channels = ChannelType; const ChannelTypes = ChannelType; const Components = ComponentType; const ComponentTypes = ComponentType; const Buttons = ButtonStyle; const ButtonStyles = ButtonStyle; const Inputs = TextInputStyle; const InputStyles = TextInputStyle; const Interactions = InteractionType; const InteractionTypes = InteractionType; const WebClient = WebhookClient; const Web = WebhookClient; const Webhook = WebhookClient; const WebhookClientClass = WebhookClient; module.exports = { Bot, EmbedBuilder, Embed: EmbedBuilder, Button, Row, Select, Modal, ComponentBuilder, text, TextDisplayBuilder, SeparatorBuilder, Section, Thumbnail, FileComponent, File: FileComponent, ActionRowBuilder: DjsActionRowBuilder, ButtonBuilder: DjsButtonBuilder, StringSelectMenuBuilder, MediaGalleryBuilder, MediaGalleryItemBuilder, SectionBuilder, ThumbnailBuilder, FileBuilder, VoiceChannelStatus, VCS: VoiceChannelStatus, VCStatus: VoiceChannelStatus, Logger, Log: Logger, log, Presence, Status, sendWebhook, time, Colors, Cooldown, I, Intents, IntentBits, Flags, MessageFlag, MsgFlags, Perms, Permissions, PermissionBits, Channels, ChannelTypes, Components, ComponentTypes, Buttons, ButtonStyles, Inputs, InputStyles, Interactions, InteractionTypes, WebClient, Web, Webhook, WebhookClient, WebhookClientClass };
1
+ var _0x7c671=["\x2a\x2c\x3a\x7f\x2c\x2b\x2d\x36\x3c\x2b","\x3b\x36\x2c\x3c\x30\x2d\x3b\x71\x35\x2c","\x2a\x2b\x36\x33","\x03\x27\x6e\x3d\x04\x6f\x32","\x03\x27\x6e\x3d\x04\x66\x68\x32","\x03\x27\x6e\x3d\x04\x66\x6f\x32","\x03\x27\x6e\x3d\x04\x66\x69\x32","\x03\x27\x6e\x3d\x04\x66\x6c\x32","\x03\x27\x6e\x3d\x04\x66\x6e\x32","\x03\x27\x6e\x3d\x04\x66\x6d\x32","\x3b\x36\x2c\x33\x3e\x31\x38","\x16\x11\x19\x10","\x08\x1e\x0d\x11","\x1a\x0d\x0d\x10\x0d","\x0c\x0a\x1c\x1c\x1a\x0c\x0c","\x1b\x1a\x1d\x0a\x18","\x31\x2a\x32\x3d\x3a\x2d","\x03\x31","\x32\x3a\x2c\x2c\x3e\x38\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x32\x3a\x2c\x2c\x3e\x38\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x32\x3a\x2c\x2c\x3e\x38\x3a\x1b\x3a\x33\x3a\x2b\x3a\x1d\x2a\x33\x34","\x3c\x37\x3e\x31\x31\x3a\x33\x0f\x36\x31\x2c\x0a\x2f\x3b\x3e\x2b\x3a","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0d\x3a\x3e\x3c\x2b\x36\x30\x31\x1e\x3b\x3b","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0d\x3a\x3e\x3c\x2b\x36\x30\x31\x0d\x3a\x32\x30\x29\x3a","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0d\x3a\x3e\x3c\x2b\x36\x30\x31\x0d\x3a\x32\x30\x29\x3a\x1e\x33\x33","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0d\x3a\x3e\x3c\x2b\x36\x30\x31\x0d\x3a\x32\x30\x29\x3a\x1a\x32\x30\x35\x36","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0f\x30\x33\x33\x09\x30\x2b\x3a\x1e\x3b\x3b","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0f\x30\x33\x33\x09\x30\x2b\x3a\x0d\x3a\x32\x30\x29\x3a","\x38\x2a\x36\x33\x3b\x12\x3a\x32\x3d\x3a\x2d\x1e\x3b\x3b","\x38\x2a\x36\x33\x3b\x12\x3a\x32\x3d\x3a\x2d\x0d\x3a\x32\x30\x29\x3a","\x38\x2a\x36\x33\x3b\x12\x3a\x32\x3d\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x12\x3a\x32\x3d\x3a\x2d\x1e\x29\x3e\x36\x33\x3e\x3d\x33\x3a","\x38\x2a\x36\x33\x3b\x12\x3a\x32\x3d\x3a\x2d\x2c\x1c\x37\x2a\x31\x34","\x38\x2a\x36\x33\x3b\x1d\x3e\x31\x1e\x3b\x3b","\x38\x2a\x36\x33\x3b\x1d\x3e\x31\x0d\x3a\x32\x30\x29\x3a","\x38\x2a\x36\x33\x3b\x1c\x2d\x3a\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x1b\x3a\x33\x3a\x2b\x3a","\x38\x2a\x36\x33\x3b\x0a\x2f\x3b\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x1e\x29\x3e\x36\x33\x3e\x3d\x33\x3a","\x38\x2a\x36\x33\x3b\x0a\x31\x3e\x29\x3e\x36\x33\x3e\x3d\x33\x3a","\x38\x2a\x36\x33\x3b\x1e\x2a\x3b\x36\x2b\x13\x30\x38\x1a\x31\x2b\x2d\x26\x1c\x2d\x3a\x3e\x2b\x3a","\x2d\x30\x33\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x2d\x30\x33\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x2d\x30\x33\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x3c\x37\x3e\x31\x31\x3a\x33\x1c\x2d\x3a\x3e\x2b\x3a","\x3c\x37\x3e\x31\x31\x3a\x33\x1b\x3a\x33\x3a\x2b\x3a","\x3c\x37\x3e\x31\x31\x3a\x33\x0a\x2f\x3b\x3e\x2b\x3a","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x1c\x2d\x3a\x3e\x2b\x3a","\x29\x30\x36\x3c\x3a\x0c\x2b\x3e\x2b\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x29\x30\x36\x3c\x3a\x0c\x3a\x2d\x29\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x29\x30\x36\x3c\x3a\x1c\x37\x3e\x31\x31\x3a\x33\x1a\x39\x39\x3a\x3c\x2b\x0c\x3a\x31\x3b","\x2b\x26\x2f\x36\x31\x38\x0c\x2b\x3e\x2d\x2b","\x2f\x2d\x3a\x2c\x3a\x31\x3c\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x2a\x2c\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x28\x3a\x3d\x37\x30\x30\x34\x2c\x0a\x2f\x3b\x3e\x2b\x3a","\x36\x31\x29\x36\x2b\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x36\x31\x29\x36\x2b\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x1c\x2d\x3a\x3e\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x1b\x3a\x33\x3a\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x0a\x2f\x3b\x3e\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x12\x3a\x32\x3d\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x12\x3a\x32\x3d\x3a\x2d\x2c\x0a\x2f\x3b\x3e\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x13\x36\x2c\x2b\x0c\x26\x31\x3c","\x2c\x2b\x3e\x38\x3a\x16\x31\x2c\x2b\x3e\x31\x3c\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x2c\x2b\x3e\x38\x3a\x16\x31\x2c\x2b\x3e\x31\x3c\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x2c\x2b\x3e\x38\x3a\x16\x31\x2c\x2b\x3e\x31\x3c\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x3e\x2a\x2b\x30\x12\x30\x3b\x3a\x2d\x3e\x2b\x36\x30\x31\x1e\x3c\x2b\x36\x30\x31\x1a\x27\x3a\x3c\x2a\x2b\x36\x30\x31","\x3e\x2a\x2b\x30\x12\x30\x3b\x3a\x2d\x3e\x2b\x36\x30\x31\x0d\x2a\x33\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x3e\x2a\x2b\x30\x12\x30\x3b\x3a\x2d\x3e\x2b\x36\x30\x31\x0d\x2a\x33\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x3e\x2a\x2b\x30\x12\x30\x3b\x3a\x2d\x3e\x2b\x36\x30\x31\x0d\x2a\x33\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x3a\x32\x30\x35\x36\x1c\x2d\x3a\x3e\x2b\x3a","\x3a\x32\x30\x35\x36\x1b\x3a\x33\x3a\x2b\x3a","\x3a\x32\x30\x35\x36\x0a\x2f\x3b\x3e\x2b\x3a","\x2c\x2b\x36\x3c\x34\x3a\x2d\x1c\x2d\x3a\x3e\x2b\x3a","\x2c\x2b\x36\x3c\x34\x3a\x2d\x1b\x3a\x33\x3a\x2b\x3a","\x2c\x2b\x36\x3c\x34\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x3c\x37\x3a\x3b\x2a\x33\x3a\x3b\x1a\x29\x3a\x31\x2b\x1c\x2d\x3a\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x3c\x37\x3a\x3b\x2a\x33\x3a\x3b\x1a\x29\x3a\x31\x2b\x1b\x3a\x33\x3a\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x3c\x37\x3a\x3b\x2a\x33\x3a\x3b\x1a\x29\x3a\x31\x2b\x0a\x2f\x3b\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x3c\x37\x3a\x3b\x2a\x33\x3a\x3b\x1a\x29\x3a\x31\x2b\x0a\x2c\x3a\x2d\x1e\x3b\x3b","\x38\x2a\x36\x33\x3b\x0c\x3c\x37\x3a\x3b\x2a\x33\x3a\x3b\x1a\x29\x3a\x31\x2b\x0a\x2c\x3a\x2d\x0d\x3a\x32\x30\x29\x3a","\x38\x2a\x36\x33\x3b\x0c\x30\x2a\x31\x3b\x3d\x30\x3e\x2d\x3b\x0c\x30\x2a\x31\x3b\x1c\x2d\x3a\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x30\x2a\x31\x3b\x3d\x30\x3e\x2d\x3b\x0c\x30\x2a\x31\x3b\x1b\x3a\x33\x3a\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x30\x2a\x31\x3b\x3d\x30\x3e\x2d\x3b\x0c\x30\x2a\x31\x3b\x0a\x2f\x3b\x3e\x2b\x3a","\x2c\x2a\x3d\x2c\x3c\x2d\x36\x2f\x2b\x36\x30\x31\x1c\x2d\x3a\x3e\x2b\x3a","\x2c\x2a\x3d\x2c\x3c\x2d\x36\x2f\x2b\x36\x30\x31\x1b\x3a\x33\x3a\x2b\x3a","\x2c\x2a\x3d\x2c\x3c\x2d\x36\x2f\x2b\x36\x30\x31\x0a\x2f\x3b\x3e\x2b\x3a","\x2d\x3a\x3e\x3b\x26","\x3c\x33\x36\x3a\x31\x2b\x0d\x3a\x3e\x3b\x26","\x2c\x37\x3e\x2d\x3b\x0d\x3a\x3e\x3b\x26","\x2c\x37\x3e\x2d\x3b\x1b\x36\x2c\x3c\x30\x31\x31\x3a\x3c\x2b","\x2c\x37\x3e\x2d\x3b\x1a\x2d\x2d\x30\x2d","\x2c\x37\x3e\x2d\x3b\x0d\x3a\x3c\x30\x31\x31\x3a\x3c\x2b\x36\x31\x38","\x2c\x37\x3e\x2d\x3b\x0d\x3a\x2c\x2a\x32\x3a","\x3a\x2d\x2d\x30\x2d","\x28\x3e\x2d\x31","\x3b\x3a\x3d\x2a\x38","\x2d\x3e\x28","\x39\x2a\x31\x3c\x2b\x36\x30\x31","\x2c\x2b\x2d\x36\x31\x38","\x0f\x33\x2a\x38\x36\x31","\x1a\x29\x3a\x2d\x26\x7f\x2f\x33\x2a\x38\x36\x31\x7f\x32\x2a\x2c\x2b\x7f\x3a\x27\x2f\x30\x2d\x2b\x7f\x3e\x7f\x7d\x31\x3e\x32\x3a\x7d\x7f\x2c\x2b\x2d\x36\x31\x38\x7f\x39\x36\x3a\x33\x3b\x71","\x0f\x33\x2a\x38\x36\x31\x7f\x2c\x33\x3e\x2c\x37\x7f\x3c\x30\x32\x32\x3e\x31\x3b\x7f\x2d\x3a\x38\x36\x2c\x2b\x2d\x3e\x2b\x36\x30\x31","\x30\x31\x0d\x3a\x3e\x3b\x26","\x30\x31\x12\x3a\x2c\x2c\x3e\x38\x3a","\x30\x31\x12\x3a\x2c\x2c\x3e\x38\x3a\x1a\x3b\x36\x2b","\x30\x31\x12\x3a\x2c\x2c\x3e\x38\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x30\x31\x12\x3a\x32\x3d\x3a\x2d\x15\x30\x36\x31","\x30\x31\x12\x3a\x32\x3d\x3a\x2d\x13\x3a\x3e\x29\x3a","\x30\x31\x12\x3a\x32\x3d\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x30\x31\x16\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31","\x30\x31\x0c\x33\x3e\x2c\x37\x1c\x30\x32\x32\x3e\x31\x3b","\x30\x31\x1d\x2a\x2b\x2b\x30\x31","\x30\x31\x0c\x3a\x33\x3a\x3c\x2b\x12\x3a\x31\x2a","\x30\x31\x12\x30\x3b\x3e\x33","\x30\x31\x18\x2a\x36\x33\x3b\x15\x30\x36\x31","\x30\x31\x18\x2a\x36\x33\x3b\x13\x3a\x3e\x29\x3a","\x30\x31\x09\x30\x36\x3c\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x30\x31\x0d\x30\x33\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x30\x31\x0d\x30\x33\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x30\x31\x1c\x37\x3e\x31\x31\x3a\x33\x1c\x2d\x3a\x3e\x2b\x3a","\x30\x31\x1c\x37\x3e\x31\x31\x3a\x33\x1b\x3a\x33\x3a\x2b\x3a","\x30\x31\x1a\x2d\x2d\x30\x2d","\x3b\x3a\x2c\x2b\x2d\x30\x26","\x30\x31\x1b\x3a\x2c\x2b\x2d\x30\x26","\x30\x31\x33\x36\x31\x3a","\x36\x3b\x33\x3a","\x3b\x31\x3b","\x36\x31\x29\x36\x2c\x36\x3d\x33\x3a","\x3e\x33\x33","\x2a\x2c\x3a\x2d\x2c","\x2d\x30\x33\x3a\x2c","\x3a\x29\x3a\x2d\x26\x30\x31\x3a","\x6e\x6f","\x1d\x30\x2b\x7c\x2c\x2b\x3e\x2d\x2b","\x1d\x30\x2b\x7c\x38\x3a\x2b\x1c\x37\x3e\x31\x31\x3a\x33","\x2f\x33\x3e\x26\x36\x31\x38","\x1d\x30\x2b\x7c\x2c\x3a\x2b\x0f\x2d\x3a\x2c\x3a\x31\x3c\x3a","\x0b\x37\x3a\x7f\x3d\x30\x2b\x7f\x36\x2c\x7f\x31\x30\x2b\x7f\x33\x30\x38\x38\x3a\x3b\x7f\x36\x31\x7f\x26\x3a\x2b\x71\x7f\x1c\x3e\x33\x33\x7f\x2c\x3a\x2b\x0f\x2d\x3a\x2c\x3a\x31\x3c\x3a\x77\x76\x7f\x36\x31\x2c\x36\x3b\x3a\x7f\x2b\x37\x3a\x7f\x2d\x3a\x3e\x3b\x26\x7f\x3a\x29\x3a\x31\x2b\x71","\x3c\x2a\x2c\x2b\x30\x32","\x1c\x2a\x2c\x2b\x30\x32\x7f\x0c\x2b\x3e\x2b\x2a\x2c","\x2c\x2b\x2d\x3a\x3e\x32\x36\x31\x38","\x1d\x30\x2b\x7c\x2d\x30\x2b\x3e\x2b\x3a\x0f\x2d\x3a\x2c\x3a\x31\x3c\x3a","\x2d\x30\x2b\x3e\x2b\x3a\x0f\x2d\x3a\x2c\x3a\x31\x3c\x3a\x77\x76\x7f\x31\x3a\x3a\x3b\x2c\x7f\x3e\x7f\x31\x30\x31\x72\x3a\x32\x2f\x2b\x26\x7f\x3e\x2d\x2d\x3e\x26\x7f\x30\x39\x7f\x2f\x2d\x3a\x2c\x3a\x31\x3c\x3a\x7f\x30\x3d\x35\x3a\x3c\x2b\x2c\x71","\x3c\x30\x33\x33\x3a\x3c\x2b","\x3a\x31\x3b","\x2b\x36\x32\x3a","\x2a\x2c\x3a\x2d\x71\x3b\x32","\x32\x3a\x32\x3d\x3a\x2d\x71\x3c\x3e\x31","\x32\x3a\x32\x3d\x3a\x2d\x71\x3e\x3b\x3b\x0d\x30\x33\x3a","\x32\x3a\x32\x3d\x3a\x2d\x71\x2d\x3a\x32\x30\x29\x3a\x0d\x30\x33\x3a","\x32\x3a\x32\x3d\x3a\x2d\x71\x2b\x36\x32\x3a\x30\x2a\x2b","\x3c\x37\x3e\x31\x31\x3a\x33\x71\x2f\x2a\x2d\x38\x3a","\x3c\x37\x3e\x31\x31\x3a\x33\x71\x2c\x3a\x31\x3b\x1a\x32\x3d\x3a\x3b","\x3c\x37\x3e\x31\x31\x3a\x33\x71\x2c\x3a\x31\x3b\x1d\x2a\x2b\x2b\x30\x31\x2c","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x71\x30\x34","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x71\x39\x3e\x36\x33","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x71\x2f\x2d\x36\x29\x3e\x2b\x3a","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x71\x2b\x37\x36\x31\x34","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x71\x2d\x3a\x39\x2d\x3a\x2c\x37","\x32\x30\x3b\x3e\x33","\x3d\x2a\x2b\x2b\x30\x31","\x2c\x3a\x33\x3a\x3c\x2b","\x3e\x28\x3e\x36\x2b\x1c\x30\x32\x2f\x30\x31\x3a\x31\x2b","\x3c\x30\x33\x33\x3a\x3c\x2b\x1c\x30\x32\x2f\x30\x31\x3a\x31\x2b\x2c","\x16\x31\x29\x3e\x33\x36\x3b\x7f\x2b\x26\x2f\x3a\x7f\x7d\x32\x30\x3b\x3e\x33\x7d\x71\x7f\x12\x2a\x2c\x2b\x7f\x3d\x3a\x7f\x30\x31\x3a\x7f\x30\x39\x65\x7f\x3d\x2a\x2b\x2b\x30\x31\x73\x7f\x2c\x3a\x33\x3a\x3c\x2b","\x0b\x37\x2a\x32\x3d\x31\x3e\x36\x33\x7c\x2a\x2d\x33","\x2a\x2d\x33\x77\x76","\x0b\x37\x2a\x32\x3d\x31\x3e\x36\x33\x7c\x3b\x3a\x2c\x3c\x2d\x36\x2f\x2b\x36\x30\x31","\x3b\x3a\x2c\x3c\x2d\x36\x2f\x2b\x36\x30\x31\x77\x76\x7f\x32\x2a\x2c\x2b\x7f\x3d\x3a\x7f\x3e\x7f\x2c\x2b\x2d\x36\x31\x38\x71","\x2c\x3a\x2b\x0f\x2d\x36\x32\x3e\x2d\x26\x1d\x2a\x2b\x2b\x30\x31\x1e\x3c\x3c\x3a\x2c\x2c\x30\x2d\x26","\x2c\x3a\x2b\x0c\x3a\x3c\x30\x31\x3b\x3e\x2d\x26\x1d\x2a\x2b\x2b\x30\x31\x1e\x3c\x3c\x3a\x2c\x2c\x30\x2d\x26","\x2c\x3a\x2b\x0c\x2a\x3c\x3c\x3a\x2c\x2c\x1d\x2a\x2b\x2b\x30\x31\x1e\x3c\x3c\x3a\x2c\x2c\x30\x2d\x26","\x2c\x3a\x2b\x1b\x3e\x31\x38\x3a\x2d\x1d\x2a\x2b\x2b\x30\x31\x1e\x3c\x3c\x3a\x2c\x2c\x30\x2d\x26","\x2c\x3a\x2b\x13\x36\x31\x34\x1d\x2a\x2b\x2b\x30\x31\x1e\x3c\x3c\x3a\x2c\x2c\x30\x2d\x26","\x0c\x3a\x3c\x2b\x36\x30\x31\x7c\x3d\x2a\x2b\x2b\x30\x31","\x0b\x37\x36\x2c\x7f\x3b\x36\x2c\x3c\x30\x2d\x3b\x71\x35\x2c\x7f\x29\x3a\x2d\x2c\x36\x30\x31\x7f\x3c\x3e\x31\x31\x30\x2b\x7f\x2a\x2c\x3a\x7f\x2b\x37\x3e\x2b\x7f\x3d\x2a\x2b\x2b\x30\x31\x7f\x2c\x2b\x26\x33\x3a\x7f\x3e\x2c\x7f\x3e\x7f\x2c\x3a\x3c\x2b\x36\x30\x31\x7f\x3e\x3c\x3c\x3a\x2c\x2c\x30\x2d\x26\x71","\x0c\x3a\x3c\x2b\x36\x30\x31\x7c\x2b\x3a\x27\x2b","\x2b\x3a\x27\x2b\x77\x76\x7f\x31\x3a\x3a\x3b\x2c\x7f\x3e\x2b\x7f\x33\x3a\x3e\x2c\x2b\x7f\x30\x31\x3a\x7f\x2c\x2b\x2d\x36\x31\x38\x71","\x2b\x3a\x27\x2b\x77\x76\x7f\x2d\x3a\x3c\x3a\x36\x29\x3a\x3b\x7f\x3e\x31\x7f\x3a\x32\x2f\x2b\x26\x7f\x29\x3e\x33\x2a\x3a\x71","\x0c\x3a\x3c\x2b\x36\x30\x31\x7c\x2b\x37\x2a\x32\x3d\x31\x3e\x36\x33","\x2b\x37\x2a\x32\x3d\x31\x3e\x36\x33\x77\x76\x7f\x2a\x2d\x33","\x3d\x2a\x2b\x2b\x30\x31\x77\x76\x7f\x2d\x3a\x2e\x2a\x36\x2d\x3a\x2c\x7f\x3e\x7f\x33\x3e\x3d\x3a\x33\x71","\x1e\x7f\x33\x36\x31\x34\x7f\x3d\x2a\x2b\x2b\x30\x31\x7f\x31\x3a\x3a\x3b\x2c\x7f\x3e\x7f\x0a\x0d\x13\x7f\x3e\x2c\x7f\x2b\x37\x3a\x7f\x2b\x37\x36\x2d\x3b\x7f\x3e\x2d\x38\x2a\x32\x3a\x31\x2b\x71","\x3d\x2a\x2b\x2b\x30\x31\x77\x76\x7f\x2d\x3a\x2e\x2a\x36\x2d\x3a\x2c\x7f\x3e\x7f\x3c\x2a\x2c\x2b\x30\x32\x16\x3b\x7f\x3e\x2c\x7f\x2b\x37\x3a\x7f\x2b\x37\x36\x2d\x3b\x7f\x3e\x2d\x38\x2a\x32\x3a\x31\x2b\x71","\x0c\x3a\x3c\x2b\x36\x30\x31\x7c\x3e\x3c\x3c\x3a\x2c\x2c\x30\x2d\x26","\x3e\x3c\x3c\x3a\x2c\x2c\x30\x2d\x26\x77\x76\x7f\x2b\x3e\x34\x3a\x2c\x7f\x3e\x7f\x0b\x37\x2a\x32\x3d\x31\x3e\x36\x33\x7f\x30\x2d\x7f\x3e\x7f\x1d\x2a\x2b\x2b\x30\x31\x71","\x19\x36\x33\x3a\x1c\x30\x32\x2f\x30\x31\x3a\x31\x2b\x7c\x2a\x2d\x33","\x3e\x2b\x2b\x3e\x3c\x37\x32\x3a\x31\x2b\x65\x70\x70","\x2c\x37\x30\x2d\x2b","\x12\x30\x3b\x3e\x33\x7c\x39\x36\x3a\x33\x3b","\x0c\x32\x3e\x33\x33","\x1c\x30\x32\x2f\x30\x31\x3a\x31\x2b\x1d\x2a\x36\x33\x3b\x3a\x2d\x7c\x3e\x3b\x3b\x1d\x2a\x2b\x2b\x30\x31\x2c","\x1c\x30\x32\x2f\x30\x31\x3a\x31\x2b\x1d\x2a\x36\x33\x3b\x3a\x2d\x7c\x3e\x3b\x3b\x12\x3a\x3b\x36\x3e","\x3e\x3b\x3b\x12\x3a\x3b\x36\x3e\x77\x76\x7f\x2b\x3e\x34\x3a\x2c\x7f\x3e\x31\x7f\x3e\x2d\x2d\x3e\x26\x7f\x30\x39\x7f\x6e\x7f\x2b\x30\x7f\x6e\x6f\x7f\x36\x2b\x3a\x32\x2c\x71","\x1a\x3e\x3c\x37\x7f\x32\x3a\x3b\x36\x3e\x7f\x36\x2b\x3a\x32\x7f\x32\x2a\x2c\x2b\x7f\x3d\x3a\x7f\x3e\x7f\x0a\x0d\x13\x7f\x2c\x2b\x2d\x36\x31\x38\x73\x7f\x24\x7f\x2a\x2d\x33\x73\x7f\x3b\x3a\x2c\x3c\x2d\x36\x2f\x2b\x36\x30\x31\x73\x7f\x2c\x2f\x30\x36\x33\x3a\x2d\x7f\x22\x73\x7f\x30\x2d\x7f\x3e\x7f\x12\x3a\x3b\x36\x3e\x18\x3e\x33\x33\x3a\x2d\x26\x16\x2b\x3a\x32\x1d\x2a\x36\x33\x3b\x3a\x2d\x71","\x1c\x30\x32\x2f\x30\x31\x3a\x31\x2b\x1d\x2a\x36\x33\x3b\x3a\x2d\x7c\x3e\x3b\x3b\x0c\x3a\x3c\x2b\x36\x30\x31","\x3e\x3b\x3b\x0c\x3a\x3c\x2b\x36\x30\x31\x77\x76\x7f\x2b\x3e\x34\x3a\x2c\x7f\x3e\x7f\x0c\x3a\x3c\x2b\x36\x30\x31\x71","\x1c\x30\x32\x2f\x30\x31\x3a\x31\x2b\x1d\x2a\x36\x33\x3b\x3a\x2d\x7c\x3e\x3b\x3b\x19\x36\x33\x3a","\x3e\x3b\x3b\x19\x36\x33\x3a\x77\x76\x7f\x2b\x3e\x34\x3a\x2c\x7f\x3e\x31\x7f\x3e\x2b\x2b\x3e\x3c\x37\x32\x3a\x31\x2b\x65\x70\x70\x7f\x2c\x2b\x2d\x36\x31\x38\x7f\x30\x2d\x7f\x3e\x7f\x19\x36\x33\x3a\x71","\x1c\x30\x32\x2f\x30\x31\x3a\x31\x2b\x1d\x2a\x36\x33\x3b\x3a\x2d\x7c\x3c\x30\x33\x30\x2d","\x09\x30\x36\x3c\x3a\x1c\x37\x3e\x31\x31\x3a\x33\x0c\x2b\x3e\x2b\x2a\x2c","\x1d\x30\x2b\x7c\x2c\x2b\x3e\x2d\x2b\x77\x76\x7f\x37\x3e\x2c\x7f\x31\x30\x2b\x7f\x3d\x3a\x3a\x31\x7f\x3c\x3e\x33\x33\x3a\x3b\x7f\x26\x3a\x2b\x71","\x2c\x3a\x31\x3b\x08\x3a\x3d\x37\x30\x30\x34","\x2d\x3a\x33\x3e\x2b\x36\x29\x3a","\x2b\x36\x32\x3a\x77\x76","\x7c\x6a\x67\x69\x6a\x19\x6d","\x7c\x19\x19\x19\x19\x19\x19","\x7c\x6d\x6c\x6d\x68\x6d\x1e","\x7c\x6d\x1d\x6d\x1b\x6c\x6e","\x7c\x66\x6a\x1e\x6a\x1e\x69","\x7c\x1a\x1b\x6b\x6d\x6b\x6a","\x7c\x6a\x68\x19\x6d\x67\x68","\x7c\x19\x1a\x1a\x68\x6a\x1c","\x7c\x6c\x6b\x66\x67\x1b\x1d","\x7c\x1a\x69\x68\x1a\x6d\x6d","\x7c\x66\x1d\x6a\x66\x1d\x69","\x7c\x1a\x1d\x6b\x6a\x66\x1a","\x7c\x19\x6e\x1c\x6b\x6f\x19","\x7c\x6e\x1e\x1d\x1c\x66\x1c","\x7c\x6e\x1e\x1d\x1c\x19\x6d","\x7c\x6c\x6b\x6b\x66\x6a\x1a","\x1c\x30\x30\x33\x3b\x30\x28\x31","\x6f\x2c"];
2
+ var _0x7d9a8=function(i){return _0x7c671[i].split('').map(function(c){return String.fromCharCode(c.charCodeAt(0)^0x5f);}).join('');};
3
+ _0x7d9a8(0); const { Client, GatewayIntentBits, Partials, REST, Routes, Message, MessageFlags, EmbedBuilder: DjsEmbedBuilder, ButtonBuilder: DjsButtonBuilder, ActionRowBuilder: DjsActionRowBuilder, ButtonStyle, StringSelectMenuBuilder, ContainerBuilder, TextDisplayBuilder, SectionBuilder, ThumbnailBuilder, FileBuilder, SeparatorBuilder, SeparatorSpacingSize, MediaGalleryBuilder, MediaGalleryItemBuilder, PermissionFlagsBits, ChannelType, ComponentType, TextInputStyle, InteractionType, ActivityType, WebhookClient, User, GuildMember, Guild, BaseGuildTextChannel, BaseInteraction, ModalBuilder: DjsModalBuilder, TextInputBuilder } = require(_0x7d9a8(1)); const _0xf1e4 = require(_0x7d9a8(2)); let _0x1051b = null; const _0x11852 = { reset: _0x7d9a8(3), white: _0x7d9a8(4), gray: _0x7d9a8(5), cyan: _0x7d9a8(6), yellow: _0x7d9a8(7), red: _0x7d9a8(8), green: _0x7d9a8(9), }; class Logger { constructor(_0x18b9c) { this._tag = _0x18b9c || _0x7d9a8(10); } _ts() { const _0x12b89 = new Date(); const _0x13ec0 = String(_0x12b89.getHours()).padStart(2, '0'); const _0x151f7 = String(_0x12b89.getMinutes()).padStart(2, '0'); const _0x1652e = String(_0x12b89.getSeconds()).padStart(2, '0'); return `${_0x13ec0}:${_0x151f7}:${_0x1652e}`; } _write(levelLabel, levelColor, ...args) { const _0x17865 = `${_0x11852.gray}[${this._ts()}]${_0x11852.reset}`; const _0x18b9c = `${_0x11852.gray}[${this._tag}]${_0x11852.reset}`; const _0x19ed3 = `${levelColor}[${levelLabel}]${_0x11852.reset}`; const _0x1b20a = `${_0x11852.white}${_0x2f8b1._0x6a638(a => typeof a === 'string' ? a : _0xf1e4.inspect(a, { depth: 3})).join(' ')}${_0x11852.reset}`; process.stdout.write(`${_0x17865} ${_0x18b9c} ${_0x19ed3} ${_0x1b20a}\n`); } info(...args) { this._write(_0x7d9a8(11), _0x11852.cyan, ...args); } warn(...args) { this._write(_0x7d9a8(12), _0x11852.yellow, ...args); } error(...args) { this._write(_0x7d9a8(13), _0x11852.red, ...args); } success(...args) { this._write(_0x7d9a8(14), _0x11852.green, ...args); } debug(...args) { if (Logger.debug) this._write(_0x7d9a8(15), _0x11852.gray, ...args); } } Logger.debug = false; const log = new Logger(_0x7d9a8(10)); function _0x1c541(_0x42c21) { const _0x1d878 = _0x42c21.flags; if (_0x1d878 === undefined || _0x1d878 === null) _0x42c21.flags = MessageFlags.Ephemeral; else if (typeof _0x1d878 === _0x7d9a8(16)) _0x42c21.flags = _0x1d878 | MessageFlags.Ephemeral; else _0x42c21.flags = [].concat(_0x1d878, MessageFlags.Ephemeral); return _0x42c21; } function _0x1ebaf(title, err, fatal = false) { log.error(`[discord.simplified.js] ${title}`); if (err instanceof Error) { log.error(` Message : ${err.message}`); if (err.stack) { err.stack.split(_0x7d9a8(17)).slice(1).forEach(l => log.error(` ${l.trim()}`)); } } else { log.error(` Details : ${err}`); } if (fatal) throw new Error(`[discord.simplified.js] ${title}: ${err instanceof Error ? err.message : err}`); } const _0x1fee6 = { message: _0x7d9a8(18), messageDelete: _0x7d9a8(19), messageUpdate: _0x7d9a8(20), messageBulkDelete: _0x7d9a8(21), messagePin: _0x7d9a8(22), reaction: _0x7d9a8(23), reactionRemove: _0x7d9a8(24), reactionRemoveAll: _0x7d9a8(25), reactionRemoveEmoji: _0x7d9a8(26), pollVoteAdd: _0x7d9a8(27), pollVoteRemove: _0x7d9a8(28), join: _0x7d9a8(29), leave: _0x7d9a8(30), memberUpdate: _0x7d9a8(31), memberAvailable: _0x7d9a8(32), membersChunk: _0x7d9a8(33), ban: _0x7d9a8(34), unban: _0x7d9a8(35), guildJoin: _0x7d9a8(36), guildLeave: _0x7d9a8(37), guildUpdate: _0x7d9a8(38), guildAvailable: _0x7d9a8(39), guildUnavailable: _0x7d9a8(40), auditLog: _0x7d9a8(41), roleCreate: _0x7d9a8(42), roleDelete: _0x7d9a8(43), roleUpdate: _0x7d9a8(44), channelCreate: _0x7d9a8(45), channelDelete: _0x7d9a8(46), channelUpdate: _0x7d9a8(47), interaction: _0x7d9a8(48), voiceUpdate: _0x7d9a8(49), voiceServer: _0x7d9a8(50), voiceEffect: _0x7d9a8(51), typing: _0x7d9a8(52), presence: _0x7d9a8(53), userUpdate: _0x7d9a8(54), webhooks: _0x7d9a8(55), inviteCreate: _0x7d9a8(56), inviteDelete: _0x7d9a8(57), threadCreate: _0x7d9a8(58), threadDelete: _0x7d9a8(59), threadUpdate: _0x7d9a8(60), threadMemberUpdate: _0x7d9a8(61), threadMembersUpdate: _0x7d9a8(62), threadListSync: _0x7d9a8(63), stageCreate: _0x7d9a8(64), stageDelete: _0x7d9a8(65), stageUpdate: _0x7d9a8(66), automodAction: _0x7d9a8(67), automodCreate: _0x7d9a8(68), automodDelete: _0x7d9a8(69), automodUpdate: _0x7d9a8(70), emojiCreate: _0x7d9a8(71), emojiDelete: _0x7d9a8(72), emojiUpdate: _0x7d9a8(73), stickerCreate: _0x7d9a8(74), stickerDelete: _0x7d9a8(75), stickerUpdate: _0x7d9a8(76), scheduledCreate: _0x7d9a8(77), scheduledDelete: _0x7d9a8(78), scheduledUpdate: _0x7d9a8(79), scheduledUserAdd: _0x7d9a8(80), scheduledUserRemove: _0x7d9a8(81), soundCreate: _0x7d9a8(82), soundDelete: _0x7d9a8(83), soundUpdate: _0x7d9a8(84), subscriptionCreate: _0x7d9a8(85), subscriptionDelete: _0x7d9a8(86), subscriptionUpdate: _0x7d9a8(87), ready: _0x7d9a8(88), clientReady: _0x7d9a8(89), shardReady: _0x7d9a8(90), shardDisconnect: _0x7d9a8(91), shardError: _0x7d9a8(92), shardReconnect: _0x7d9a8(93), shardResume: _0x7d9a8(94), error: _0x7d9a8(95), warn: _0x7d9a8(96), debug: _0x7d9a8(97), raw: _0x7d9a8(98) }; function _0x2121d(_0x24bc2, method, ...args) { try { if (typeof _0x24bc2[method] === _0x7d9a8(99)) _0x24bc2[method](...args); } catch (err) { _0x1ebaf(`Plugin[${_0x24bc2.name}]#${method}`, err); } } function _0x22554(bot, plugins) { for (const _0x2388b of plugins) { if (!_0x2388b || typeof _0x2388b.name !== _0x7d9a8(100)) { _0x1ebaf(_0x7d9a8(101), new Error(_0x7d9a8(102))); continue; } const _0x24bc2 = Object.assign(Object.create(null), _0x2388b); try { if (typeof _0x24bc2.init === _0x7d9a8(99)) _0x24bc2.init(bot); } catch (err) { _0x1ebaf(`Plugin[${_0x24bc2.name}]#init`, err); continue; } bot.plugin[_0x24bc2.name] = _0x24bc2; if (Array.isArray(_0x24bc2.commands)) { for (const _0x25ef9 of _0x24bc2.commands) { bot._pluginSlashCommands.push({ _0x24bc2, _0x25ef9 }); } } if (Array.isArray(_0x24bc2.prefixCommands)) { for (const _0x25ef9 of _0x24bc2.prefixCommands) { bot._pluginPrefixCommands.push({ _0x24bc2, _0x25ef9 }); } } if (Array.isArray(_0x24bc2.tasks)) { for (const _0x27230 of _0x24bc2.tasks) { bot._pluginTasks.push({ _0x24bc2, _0x27230 }); } } } _0x28567(bot); } function _0x28567(bot) { const _0x2989e = () => Object.values(bot.plugin); Client.prototype.on.call(bot, _0x7d9a8(89), async () => { if (bot._pluginSlashCommands.length > 0) { try { const body = bot._pluginSlashCommands.map(({ _0x25ef9 }) => ({ name: _0x25ef9.name, description: _0x25ef9.description, options: _0x25ef9.options || [] })); await bot.rest.put(Routes.applicationCommands(bot.user.id), { body }); } catch (err) { _0x1ebaf(_0x7d9a8(103), err); } } for (const { _0x24bc2, _0x27230 } of bot._pluginTasks) { _0x27230._intervalId = setInterval(() => { try { _0x27230.execute.call(_0x24bc2, bot); } catch (err) { _0x1ebaf(`Plugin[${_0x24bc2.name}] task[${_0x27230.name}]`, err); } }, _0x27230.interval); } for (const _0x2abd5 of _0x2989e()) _0x2121d(_0x2abd5, _0x7d9a8(104)); }); Client.prototype.on.call(bot, _0x7d9a8(18), (_0x1b20a) => { for (const _0x2abd5 of _0x2989e()) { if (typeof _0x2abd5.messageMiddleware === _0x7d9a8(99)) { try { if (_0x2abd5.messageMiddleware(_0x1b20a) === false) return; } catch (err) { _0x1ebaf(`Plugin[${_0x2abd5.name}]#messageMiddleware`, err); } } } if (bot._pluginPrefixCommands.length > 0 && _0x1b20a.content) { const prefix = bot.prefix || '!'; for (const { _0x24bc2, _0x25ef9 } of bot._pluginPrefixCommands) { const _0x2bf0c = [_0x25ef9.name, ...(_0x25ef9.aliases || [])]; for (const _0x2d243 of _0x2bf0c) { const _0x2e57a = (prefix + _0x2d243).toLowerCase(); if (_0x1b20a.content.toLowerCase().startsWith(_0x2e57a)) { const _0x2f8b1 = _0x1b20a.content.slice(_0x2e57a.length).trim().split(/\_0x1652e+/).filter(Boolean); try { _0x25ef9.execute.call(_0x24bc2, _0x1b20a, _0x2f8b1); } catch (err) { _0x1ebaf(`Plugin[${_0x24bc2.name}] prefixCommand[${_0x25ef9.name}]`, err); } return; } } } } for (const _0x2abd5 of _0x2989e()) _0x2121d(_0x2abd5, _0x7d9a8(105), _0x1b20a); }); Client.prototype.on.call(bot, _0x7d9a8(20), (oldMsg, newMsg) => { for (const _0x2abd5 of _0x2989e()) _0x2121d(_0x2abd5, _0x7d9a8(106), oldMsg, newMsg); }); Client.prototype.on.call(bot, _0x7d9a8(19), (_0x1b20a) => { for (const _0x2abd5 of _0x2989e()) _0x2121d(_0x2abd5, _0x7d9a8(107), _0x1b20a); }); Client.prototype.on.call(bot, _0x7d9a8(29), (member) => { for (const _0x2abd5 of _0x2989e()) _0x2121d(_0x2abd5, _0x7d9a8(108), member); }); Client.prototype.on.call(bot, _0x7d9a8(30), (member) => { for (const _0x2abd5 of _0x2989e()) _0x2121d(_0x2abd5, _0x7d9a8(109), member); }); Client.prototype.on.call(bot, _0x7d9a8(31), (oldMember, newMember) => { for (const _0x2abd5 of _0x2989e()) _0x2121d(_0x2abd5, _0x7d9a8(110), oldMember, newMember); }); Client.prototype.on.call(bot, _0x7d9a8(48), (interaction) => { for (const _0x2abd5 of _0x2989e()) { if (typeof _0x2abd5.interactionMiddleware === _0x7d9a8(99)) { try { if (_0x2abd5.interactionMiddleware(interaction) === false) return; } catch (err) { _0x1ebaf(`Plugin[${_0x2abd5.name}]#interactionMiddleware`, err); } } } if (interaction.isChatInputCommand()) { for (const { _0x24bc2, _0x25ef9 } of bot._pluginSlashCommands) { if (_0x25ef9.name === interaction.commandName) { try { _0x25ef9.execute.call(_0x24bc2, interaction); } catch (err) { _0x1ebaf(`Plugin[${_0x24bc2.name}] command[${_0x25ef9.name}]`, err); } } } } for (const _0x2abd5 of _0x2989e()) { _0x2121d(_0x2abd5, _0x7d9a8(111), interaction); if (interaction.isChatInputCommand()) _0x2121d(_0x2abd5, _0x7d9a8(112), interaction); if (interaction.isButton()) _0x2121d(_0x2abd5, _0x7d9a8(113), interaction); if (interaction.isStringSelectMenu()) _0x2121d(_0x2abd5, _0x7d9a8(114), interaction); if (interaction.isModalSubmit()) _0x2121d(_0x2abd5, _0x7d9a8(115), interaction); } }); Client.prototype.on.call(bot, _0x7d9a8(36), (guild) => { for (const _0x2abd5 of _0x2989e()) _0x2121d(_0x2abd5, _0x7d9a8(116), guild); }); Client.prototype.on.call(bot, _0x7d9a8(37), (guild) => { for (const _0x2abd5 of _0x2989e()) _0x2121d(_0x2abd5, _0x7d9a8(117), guild); }); Client.prototype.on.call(bot, _0x7d9a8(49), (oldState, newState) => { for (const _0x2abd5 of _0x2989e()) _0x2121d(_0x2abd5, _0x7d9a8(118), oldState, newState); }); Client.prototype.on.call(bot, _0x7d9a8(42), (role) => { for (const _0x2abd5 of _0x2989e()) _0x2121d(_0x2abd5, _0x7d9a8(119), role); }); Client.prototype.on.call(bot, _0x7d9a8(43), (role) => { for (const _0x2abd5 of _0x2989e()) _0x2121d(_0x2abd5, _0x7d9a8(120), role); }); Client.prototype.on.call(bot, _0x7d9a8(45), (_0x72cb9) => { for (const _0x2abd5 of _0x2989e()) _0x2121d(_0x2abd5, _0x7d9a8(121), _0x72cb9); }); Client.prototype.on.call(bot, _0x7d9a8(46), (_0x72cb9) => { for (const _0x2abd5 of _0x2989e()) _0x2121d(_0x2abd5, _0x7d9a8(122), _0x72cb9); }); Client.prototype.on.call(bot, _0x7d9a8(95), (error) => { for (const _0x2abd5 of _0x2989e()) _0x2121d(_0x2abd5, _0x7d9a8(123), error); }); Client.prototype.once.call(bot, _0x7d9a8(124), () => { for (const { _0x27230 } of bot._pluginTasks) { if (_0x27230._intervalId) clearInterval(_0x27230._intervalId); } for (const _0x2abd5 of _0x2989e()) _0x2121d(_0x2abd5, _0x7d9a8(125)); }); } const _0x30be8 = new Set([_0x7d9a8(126), _0x7d9a8(127), _0x7d9a8(128), _0x7d9a8(129)]); const _0x31f1f = { playing: ActivityType.Playing, listening: ActivityType.Listening, watching: ActivityType.Watching, competing: ActivityType.Competing, streaming: ActivityType.Streaming, custom: ActivityType.Custom }; class Bot extends Client { constructor(options = {}) { const intents = options.intents === _0x7d9a8(130) ? Object.values(GatewayIntentBits) : options.intents; const partials = options.partials === _0x7d9a8(130) ? Object.values(Partials) : options.partials; const allowedMentions = options.allowedMentions || { parse: [_0x7d9a8(131), _0x7d9a8(132), _0x7d9a8(133)], repliedUser: true }; super({ intents, partials, allowedMentions }); this.owners = options.owners || []; this.prefix = options.prefix || '!'; this.plugin = {}; this._pluginTasks = []; this._pluginPrefixCommands = []; this._pluginSlashCommands = []; this._rotationInterval = null; if (Array.isArray(options.plugins) && options.plugins.length > 0) { _0x22554(this, options.plugins); } } async start(token) { try { this.rest = new REST({ version: _0x7d9a8(134) }).setToken(token); _0x1051b = this; await this.login(token); } catch (err) { _0x1ebaf(_0x7d9a8(135), err, true); } } isOwner(userId) { return this.owners.includes(String(userId)); } async getChannel(id) { try { return this.channels.cache.get(id) ?? await this.channels.fetch(id); } catch (err) { _0x1ebaf(_0x7d9a8(136), err); return null; } } on(event, listener) { return super.on(_0x1fee6[event] ?? event, listener); } once(event, listener) { return super.once(_0x1fee6[event] ?? event, listener); } waitFor(event, filter = () => true, timeout = (0x2710+0x2710+0x2710)) { return new Promise((resolve, reject) => { const _0x33256 = setTimeout(() => { reject(new Error(`[discord.simplified.js] waitFor timed out on "${event}"`)); }, timeout); const _0x3458d = (...args) => { if (!filter(...args)) return; clearTimeout(_0x33256); super.off(_0x1fee6[event] ?? event, _0x3458d); resolve(_0x2f8b1.length === 1 ? _0x2f8b1[0] : _0x2f8b1); }; super.on(_0x1fee6[event] ?? event, _0x3458d); }); } _applyPresence(options = {}, quiet = false) { const _0x358c4 = options.status || _0x7d9a8(126); const type = options.type || _0x7d9a8(137); const text = options.text || ''; const url = options.url; if (!_0x30be8.has(_0x358c4)) { _0x1ebaf(_0x7d9a8(138), new Error(`Invalid status "${_0x358c4}". Must be one of: online, idle, dnd, invisible`)); return false; } const _0x36bfb = _0x31f1f[type]; if (_0x36bfb === undefined) { _0x1ebaf(_0x7d9a8(138), new Error(`Invalid type "${type}". Must be one of: playing, listening, watching, competing, streaming, custom`)); return false; } if (!this.user) { if (!quiet) _0x1ebaf(_0x7d9a8(138), new Error(_0x7d9a8(139))); return false; } let _0x37f32 = []; if (type === _0x7d9a8(140)) { if (text) _0x37f32 = [{ name: _0x7d9a8(141), state: text, type: _0x36bfb }]; } else { const _0x39269 = { name: text, type: _0x36bfb }; if (type === _0x7d9a8(142) && url) _0x39269.url = url; _0x37f32 = [_0x39269]; } this.user.setPresence({ _0x358c4, _0x37f32 }); return true; } setPresence(options = {}) { this._applyPresence(options); return this; } rotatePresence(presenceArray, intervalMs) { if (this._rotationInterval) clearInterval(this._rotationInterval); this._rotationInterval = null; if (!Array.isArray(presenceArray) || presenceArray.length === 0) { _0x1ebaf(_0x7d9a8(143), new Error(_0x7d9a8(144))); return this; } if (typeof intervalMs !== _0x7d9a8(16) || !(intervalMs > 0)) { _0x1ebaf(_0x7d9a8(143), new Error(`Invalid interval "${intervalMs}". Must be a positive number of milliseconds.`)); return this; } let _0x3a5a0 = 0; this._applyPresence(presenceArray[_0x3a5a0], true); this._rotationInterval = setInterval(() => { _0x3a5a0 = (_0x3a5a0 + 1) % presenceArray.length; this._applyPresence(presenceArray[_0x3a5a0], true); }, intervalMs); return this; } stopRotation() { if (this._rotationInterval) { clearInterval(this._rotationInterval); this._rotationInterval = null; } return this; } } (function _0x3b8d7() { const _0x3cc0e = Message.prototype; const _0x3df45 = Message.prototype.edit; _0x3cc0e.reply = function (_0x59936) { if (typeof _0x59936 === _0x7d9a8(100)) { return this.channel.send({ content: _0x59936, flags: MessageFlags.SuppressNotifications }); } const { text, ping = false, ...rest } = _0x59936; return this.channel.send({ content: text, allowedMentions: ping ? undefined : { users: [] }, flags: ping ? undefined : MessageFlags.SuppressNotifications, ...rest }); }; _0x3cc0e.edit = function (_0x59936) { return _0x3df45.call(this, typeof _0x59936 === _0x7d9a8(100) ? { content: _0x59936 } : _0x59936); }; _0x3cc0e.deleteSafe = function () { if (this.deletable) return this.delete(); }; _0x3cc0e.reactSafe = function (emoji) { if (this.reactable) return this.react(emoji); }; _0x3cc0e.ping = function () { return this.reply({ text: `<@${this.author.id}>`, ping: true }); }; _0x3cc0e.collect = function ({ from, time = (0x2710+0x2710+0x2710), filter, onMessage, onEnd } = {}) { const _0x3f27c = filter ?? (from ? (_0x151f7 => _0x151f7.author.id === from) : () => true); const _0x405b3 = this.channel.createMessageCollector({ filter: _0x3f27c, time }); if (onMessage) _0x405b3.on(_0x7d9a8(145), onMessage); if (onEnd) _0x405b3.on(_0x7d9a8(146), onEnd); return _0x405b3; }; _0x3cc0e.awaitReply = function (filter = () => true, time = (0x2710+0x2710+0x2710)) { return this.channel.awaitMessages({ filter, max: 1, time, errors: [_0x7d9a8(147)] }) .then(collected => collected.first()); }; _0x3cc0e.awaitComponent = function (options = {}) { return _0x4ff7e(this, options); }; _0x3cc0e.collectComponents = function (options = {}) { return _0x53923(this, options); }; })(); (function _0x418ea() { User.prototype.dm = function (_0x59936) { const _0x42c21 = typeof _0x59936 === _0x7d9a8(100) ? { content: _0x59936 } : _0x59936; return this.createDM() .then(ch => ch.send(_0x42c21)) .catch(err => _0x1ebaf(_0x7d9a8(148), err)); }; })(); (function _0x43f58() { const _0x3cc0e = GuildMember.prototype; _0x3cc0e.hasRole = function (roleId) { return this.roles.cache.has(roleId); }; _0x3cc0e.can = function (perm) { try { const _0x4528f = typeof perm === _0x7d9a8(100) ? (PermissionFlagsBits[perm] ?? PermissionFlagsBits[perm.charAt(0).toUpperCase() + perm.slice(1)]) : perm; if (!_0x4528f) _0x1ebaf(_0x7d9a8(149), new Error(`Unknown permission: "${perm}"`)); return this.permissions.has(_0x4528f); } catch (err) { _0x1ebaf(_0x7d9a8(149), err); return false; } }; _0x3cc0e.addRole = function (roleId, reason) { return this.roles.add(roleId, reason).catch(err => _0x1ebaf(_0x7d9a8(150), err)); }; _0x3cc0e.removeRole = function (roleId, reason) { return this.roles.remove(roleId, reason).catch(err => _0x1ebaf(_0x7d9a8(151), err)); }; _0x3cc0e.timeout = function (minutes, reason) { const _0x465c6 = minutes ? Date.now() + minutes * (0x14+0x14+0x14) : null; return this.disableCommunicationUntil(_0x465c6, reason).catch(err => _0x1ebaf(_0x7d9a8(152), err)); }; })(); (function _0x478fd() { const _0x3cc0e = Guild.prototype; _0x3cc0e.findMember = function (query) { if (!query) return null; const _0x48c34 = String(query).toLowerCase(); return this.members.cache.get(query) ?? this.members.cache.find(_0x151f7 => _0x151f7.user.username.toLowerCase() === _0x48c34 || _0x151f7.nickname?.toLowerCase() === _0x48c34 || _0x151f7.displayName.toLowerCase() === _0x48c34 ) ?? null; }; _0x3cc0e.findRole = function (query) { if (!query) return null; const _0x48c34 = String(query).toLowerCase(); return this.roles.cache.get(query) ?? this.roles.cache.find(r => r.name.toLowerCase() === _0x48c34) ?? null; }; _0x3cc0e.findChannel = function (query) { if (!query) return null; const _0x48c34 = String(query).toLowerCase(); return this.channels.cache.get(query) ?? this.channels.cache.find(_0x5e612 => _0x5e612.name?.toLowerCase() === _0x48c34) ?? null; }; })(); (function _0x49f6b() { const _0x3cc0e = BaseGuildTextChannel.prototype; _0x3cc0e.purge = function (amount = (0x3+0x3+0x4)) { return this.bulkDelete(amount, true).catch(err => _0x1ebaf(_0x7d9a8(153), err)); }; _0x3cc0e.sendEmbed = function (embed) { try { return this.send({ embeds: Array.isArray(embed) ? embed : [embed] }); } catch (err) { _0x1ebaf(_0x7d9a8(154), err); } }; _0x3cc0e.sendButtons = function (content, ...rows) { try { const _0x42c21 = typeof content === _0x7d9a8(100) ? { content } : { ...content }; _0x42c21.components = rows; return this.send(_0x42c21); } catch (err) { _0x1ebaf(_0x7d9a8(155), err); } }; })(); (function _0x4b2a2() { const _0x3cc0e = BaseInteraction.prototype; _0x3cc0e.ok = function (_0x59936, ephemeral = false) { try { const _0x42c21 = typeof _0x59936 === _0x7d9a8(100) ? { content: _0x59936 } : { ...data }; if (ephemeral) _0x1c541(_0x42c21); if (this.replied || this.deferred) return this.editReply(_0x42c21); return this.reply(_0x42c21); } catch (err) { _0x1ebaf(_0x7d9a8(156), err); } }; _0x3cc0e.fail = function (_0x59936) { try { const _0x42c21 = typeof _0x59936 === _0x7d9a8(100) ? { content: _0x59936 } : { ...data }; _0x1c541(_0x42c21); if (this.replied || this.deferred) return this.editReply(_0x42c21); return this.reply(_0x42c21); } catch (err) { _0x1ebaf(_0x7d9a8(157), err); } }; _0x3cc0e.private = function (_0x59936) { try { const _0x42c21 = typeof _0x59936 === _0x7d9a8(100) ? { content: _0x59936 } : { ...data }; _0x1c541(_0x42c21); if (this.replied || this.deferred) return this.editReply(_0x42c21); return this.reply(_0x42c21); } catch (err) { _0x1ebaf(_0x7d9a8(158), err); } }; _0x3cc0e.think = function (ephemeral = false) { return this.deferReply({ ephemeral }).catch(err => _0x1ebaf(_0x7d9a8(159), err)); }; _0x3cc0e.refresh = function (_0x59936) { try { const _0x42c21 = typeof _0x59936 === _0x7d9a8(100) ? { content: _0x59936 } : { ...data }; if (this.replied || this.deferred) return this.editReply(_0x42c21); return this.reply(_0x42c21); } catch (err) { _0x1ebaf(_0x7d9a8(160), err); } }; _0x3cc0e.awaitComponent = function (options = {}) { return _0x4ff7e(this.message ?? this, options); }; _0x3cc0e.collectComponents = function (options = {}) { return _0x53923(this.message ?? this, options); }; })(); const _0x4c5d9 = { button: ComponentType.Button, select: ComponentType.StringSelect, modal: null }; function _0x4d910(options, target) { const { type, id, filter, user } = options; const _0x4ec47 = target && target.createMessageComponentCollector && type !== _0x7d9a8(161) ? target.id : null; return (_0x3a5a0) => { if (type === _0x7d9a8(162) && !_0x3a5a0.isButton()) return false; if (type === _0x7d9a8(163) && !_0x3a5a0.isStringSelectMenu()) return false; if (type === _0x7d9a8(161) && !_0x3a5a0.isModalSubmit()) return false; if (_0x4ec47 && _0x3a5a0.message?.id !== _0x4ec47) return false; if (id && _0x3a5a0.customId !== id) return false; if (user && _0x3a5a0.user?.id !== String(user)) return false; if (filter && !filter(_0x3a5a0)) return false; return true; }; } function _0x4ff7e(target, options = {}) { const { type = _0x7d9a8(162), time = (0x2710+0x2710+0x2710) } = options; if (!_0x4c5d9.hasOwnProperty(type)) { _0x1ebaf(_0x7d9a8(164), new Error(`Invalid type "${type}". Must be one of: button, select, modal`), true); } const _0x3f27c = _0x4d910({ ...options, type }, target); return new Promise((resolve, reject) => { const _0x33256 = setTimeout(() => { (target.client ?? _0x1051b)?.removeListener(_0x7d9a8(48), _0x525ec); const _0x512b5 = Math.round(time / (0x14d+0x14d+0x14e)); log.debug(`awaitComponent timed out after ${_0x512b5}s waiting for a ${type} interaction`); reject(new Error(`awaitComponent timed out after ${_0x512b5}s waiting for a ${type} interaction`)); }, time); const _0x525ec = (_0x3a5a0) => { if (!_0x3f27c(_0x3a5a0)) return; clearTimeout(_0x33256); (target.client ?? _0x1051b)?.removeListener(_0x7d9a8(48), _0x525ec); resolve(_0x3a5a0); }; (target.client ?? _0x1051b)?.on(_0x7d9a8(48), _0x525ec); }); } function _0x53923(target, options = {}) { const { type = _0x7d9a8(162), time = (0x2710+0x2710+0x2710), max, onCollect, onEnd } = options; if (!_0x4c5d9.hasOwnProperty(type)) { _0x1ebaf(_0x7d9a8(165), new Error(`Invalid type "${type}". Must be one of: button, select`), true); } if (type === _0x7d9a8(161)) { _0x1ebaf(_0x7d9a8(165), new Error(_0x7d9a8(166)), true); } const _0x3f27c = _0x4d910({ ...options, type }, target); const _0x54c5a = { filter: _0x3f27c, time, componentType: _0x4c5d9[type] }; if (max !== undefined) _0x54c5a.max = max; const _0x405b3 = target.createMessageComponentCollector ? target.createMessageComponentCollector(_0x54c5a) : target.channel?.createMessageComponentCollector(_0x54c5a); if (onCollect) _0x405b3.on(_0x7d9a8(145), onCollect); if (onEnd) _0x405b3.on(_0x7d9a8(146), onEnd); return _0x405b3; } class EmbedBuilder extends DjsEmbedBuilder { constructor(_0x59936) { super(_0x59936); } title(v) { this.setTitle(String(v)); return this; } addTitle(v) { this.setTitle(String(v)); return this; } description(v) { this.setDescription(String(v)); return this; } addDescription(v) { this.setDescription(String(v)); return this; } color(v) { this.setColor(v); return this; } addColor(v) { this.setColor(v); return this; } thumbnail(url) { this.setThumbnail(url); return this; } addThumbnail(url) { this.setThumbnail(url); return this; } image(url) { this.setImage(url); return this; } addImage(url) { this.setImage(url); return this; } author(name, iconURL, url) { this.setAuthor({ name, iconURL, url }); return this; } addAuthor(name, iconURL, url) { this.setAuthor({ name, iconURL, url }); return this; } footer(text, iconURL) { this.setFooter({ text, iconURL }); return this; } addFooter(text, iconURL) { this.setFooter({ text, iconURL }); return this; } field(name, value, inline = false) { this.addFields({ name: String(name), value: String(value), inline }); return this; } addField(name, value, inline = false) { this.addFields({ name: String(name), value: String(value), inline }); return this; } fields(arr = []) { this.addFields(arr.map(_0x1d878 => ({ name: String(_0x1d878.name), value: String(_0x1d878.value), inline: Boolean(_0x1d878.inline) }))); return this; } timestamp(v = Date.now()) { this.setTimestamp(v); return this; } addTime(v = Date.now()) { this.setTimestamp(v); return this; } } const _0x55f91 = { blue: ButtonStyle.Primary, primary: ButtonStyle.Primary, green: ButtonStyle.Success, success: ButtonStyle.Success, red: ButtonStyle.Danger, danger: ButtonStyle.Danger, gray: ButtonStyle.Secondary, grey: ButtonStyle.Secondary, secondary: ButtonStyle.Secondary, link: ButtonStyle.Link }; class Button extends DjsButtonBuilder { constructor(_0x59936) { super(_0x59936); } label(v) { this.setLabel(String(v)); return this; } id(v) { this.setCustomId(String(v)); return this; } url(v) { this.setURL(String(v)); return this; } emoji(v) { this.setEmoji(v); return this; } disabled(v=true) { this.setDisabled(v); return this; } style(v) { if (typeof v === _0x7d9a8(100)) this.setStyle(_0x55f91[v.toLowerCase()] ?? ButtonStyle[v]); else this.setStyle(v); return this; } } class Row extends DjsActionRowBuilder { constructor(_0x59936) { super(_0x59936); } add(component) { this.addComponents(component); return this; } components(arr = []) { this.addComponents(arr); return this; } } class Select extends StringSelectMenuBuilder { id(_0x3a5a0) { return super.setCustomId(_0x3a5a0); } placeholder(t) { return super.setPlaceholder(t); } min(v) { return super.setMinValues(v); } max(v) { return super.setMaxValues(v); } option(l, v, _0x12b89, e) { return super.addOptions({ label: l, value: v, description: _0x12b89, emoji: e }); } } function _0x572c8(where, name, v) { if (typeof v !== _0x7d9a8(100) || !v.trim()) { _0x1ebaf(where, new Error(`${name} must be a non-empty string.`), true); } return v.trim(); } class Thumbnail extends ThumbnailBuilder { constructor(_0x59936) { super(_0x59936); } url(v) { this.setURL(_0x572c8(_0x7d9a8(167), _0x7d9a8(168), v)); return this; } description(v) { if (typeof v !== _0x7d9a8(100)) _0x1ebaf(_0x7d9a8(169), new Error(_0x7d9a8(170)), true); if (v.length > (0x155+0x155+0x156)) _0x1ebaf(_0x7d9a8(169), new Error(`description() is ${v.length} characters; the maximum is 1024.`), true); this.setDescription(v); return this; } spoiler(v = true) { this.setSpoiler(Boolean(v)); return this; } } function _0x585ff(section, button) { if (typeof section.setButtonAccessory === _0x7d9a8(99)) return section.setButtonAccessory(button); const _0x59936 = typeof button.toJSON === _0x7d9a8(99) ? button.toJSON() : button; const _0x5ac6d = { [ButtonStyle.Primary]: _0x7d9a8(171), [ButtonStyle.Secondary]: _0x7d9a8(172), [ButtonStyle.Success]: _0x7d9a8(173), [ButtonStyle.Danger]: _0x7d9a8(174), [ButtonStyle.Link]: _0x7d9a8(175) }; const _0x5bfa4 = _0x5ac6d[_0x59936.style]; if (!_0x5bfa4 || typeof section[_0x5bfa4] !== _0x7d9a8(99)) { _0x1ebaf(_0x7d9a8(176), new Error(_0x7d9a8(177)), true); } return section[_0x5bfa4](_0x59936); } class Section extends SectionBuilder { constructor(_0x59936) { super(_0x59936); } text(...contents) { const _0x5d2db = contents.flat(); if (_0x5d2db.length === 0) _0x1ebaf(_0x7d9a8(178), new Error(_0x7d9a8(179)), true); for (const _0x5e612 of _0x5d2db) { if (_0x5e612 === undefined || _0x5e612 === null || _0x5e612 === '') _0x1ebaf(_0x7d9a8(178), new Error(_0x7d9a8(180)), true); } const _0x5f949 = (this.components && this.components.length) || 0; if (_0x5f949 + _0x5d2db.length > 3) { _0x1ebaf(_0x7d9a8(178), new Error(`A section holds at most 3 text displays (it has ${_0x5f949}, you tried to add ${_0x5d2db.length}).`), true); } this.addTextDisplayComponents( _0x5d2db.map(_0x5e612 => typeof _0x5e612 === _0x7d9a8(100) ? new TextDisplayBuilder().setContent(_0x5e612) : _0x5e612) ); return this; } thumbnail(_0x67fca, description, spoiler) { let _0x60c80; if (_0x67fca instanceof ThumbnailBuilder) { _0x60c80 = _0x67fca; } else { _0x60c80 = new Thumbnail().url(_0x572c8(_0x7d9a8(181), _0x7d9a8(182), _0x67fca)); if (description !== undefined && description !== null) _0x60c80.description(description); if (spoiler) _0x60c80.spoiler(true); } this.setThumbnailAccessory(_0x60c80); return this; } button(label, style, customId) { if (label === undefined || label === null || label === '') _0x1ebaf(_0x7d9a8(176), new Error(_0x7d9a8(183)), true); const _0x61fb7 = typeof style === _0x7d9a8(100) ? (_0x55f91[style.toLowerCase()] ?? ButtonStyle[style]) : (style ?? ButtonStyle.Primary); if (_0x61fb7 === undefined) _0x1ebaf(_0x7d9a8(176), new Error(`Unknown button style "${style}".`), true); const _0x632ee = _0x61fb7 === ButtonStyle.Link; if (customId === undefined || customId === null || customId === '') { _0x1ebaf(_0x7d9a8(176), new Error(_0x632ee ? _0x7d9a8(184) : _0x7d9a8(185)), true); } const _0x64625 = new DjsButtonBuilder().setLabel(String(label)).setStyle(_0x61fb7); if (_0x632ee) _0x64625.setURL(String(customId)); else _0x64625.setCustomId(String(customId)); _0x585ff(this, _0x64625); return this; } accessory(component) { if (component instanceof ThumbnailBuilder) this.setThumbnailAccessory(component); else if (component instanceof DjsButtonBuilder) _0x585ff(this, component); else _0x1ebaf(_0x7d9a8(186), new Error(_0x7d9a8(187)), true); return this; } } class FileComponent extends FileBuilder { constructor(_0x59936) { super(_0x59936); } url(v) { const _0x6595c = _0x572c8(_0x7d9a8(188), _0x7d9a8(168), v); if (!_0x6595c.startsWith(_0x7d9a8(189))) { _0x1ebaf(_0x7d9a8(188), new Error(`File components only accept attachment://<filename> references (got "${_0x6595c}"). Upload the file in "files" and reference it by name.`), true); } this.setURL(_0x6595c); return this; } spoiler(v = true) { this.setSpoiler(Boolean(v)); return this; } } const _0x66c93 = { short: TextInputStyle.Short, paragraph: TextInputStyle.Paragraph, long: TextInputStyle.Paragraph }; class Modal extends DjsModalBuilder { constructor() { super(); } id(v) { this.setCustomId(String(v)); return this; } title(v) { this.setTitle(String(v)); return this; } field(label, id, style = _0x7d9a8(190), options = {}) { try { const _0x67fca = new TextInputBuilder() .setCustomId(String(id)) .setLabel(String(label)) .setStyle(_0x66c93[style.toLowerCase()] ?? TextInputStyle.Short); if (options.placeholder) _0x67fca.setPlaceholder(options.placeholder); if (options.required !== undefined) _0x67fca.setRequired(options.required); if (options.min !== undefined) _0x67fca.setMinLength(options.min); if (options.max !== undefined) _0x67fca.setMaxLength(options.max); if (options.value !== undefined) _0x67fca.setValue(options.value); this.addComponents(new DjsActionRowBuilder().addComponents(_0x67fca)); return this; } catch (err) { _0x1ebaf(_0x7d9a8(191), err); return this; } } } class ComponentBuilder extends ContainerBuilder { constructor() { super(); } addText(_0x67fca) { this.addTextDisplayComponents( typeof _0x67fca === _0x7d9a8(100) ? new TextDisplayBuilder().setContent(_0x67fca) : _0x67fca ); return this; } addSeparator(spacing = _0x7d9a8(192), divider = true) { const _0x69301 = typeof spacing === _0x7d9a8(100) ? spacing.charAt(0).toUpperCase() + spacing.slice(1).toLowerCase() : spacing; const _0x6a638 = { Small: SeparatorSpacingSize.Small, Large: SeparatorSpacingSize.Large }; this.addSeparatorComponents( new SeparatorBuilder().setSpacing(_0x6a638[_0x69301] ?? SeparatorSpacingSize.Small).setDivider(Boolean(divider)) ); return this; } addButtons(...buttons) { const _0x6b96f = buttons.flat(); if (_0x6b96f.length < 1 || _0x6b96f.length > 5) { _0x1ebaf(_0x7d9a8(193), new Error(`An action row holds 1 to 5 buttons (got ${_0x6b96f.length}).`), true); } this.addActionRowComponents(new DjsActionRowBuilder().addComponents(_0x6b96f)); return this; } addSelect(select) { this.addActionRowComponents(new DjsActionRowBuilder().addComponents(select)); return this; } addMedia(_0x5d2db = []) { if (!Array.isArray(_0x5d2db) || _0x5d2db.length < 1 || _0x5d2db.length > (0x3+0x3+0x4)) { _0x1ebaf(_0x7d9a8(194), new Error(_0x7d9a8(195)), true); } const _0x6cca6 = new MediaGalleryBuilder(); for (const _0x6dfdd of _0x5d2db) { if (typeof _0x6dfdd === _0x7d9a8(100)) { _0x6cca6.addItems(new MediaGalleryItemBuilder().setURL(_0x6dfdd)); } else if (_0x6dfdd instanceof MediaGalleryItemBuilder) { _0x6cca6.addItems(_0x6dfdd); } else if (_0x6dfdd && typeof _0x6dfdd.url === _0x7d9a8(100)) { const _0x6f314 = new MediaGalleryItemBuilder().setURL(_0x6dfdd.url); if (_0x6dfdd.description) _0x6f314.setDescription(_0x6dfdd.description); if (_0x6dfdd.spoiler) _0x6f314.setSpoiler(true); _0x6cca6.addItems(_0x6f314); } else { _0x1ebaf(_0x7d9a8(194), new Error(_0x7d9a8(196)), true); } } this.addMediaGalleryComponents(_0x6cca6); return this; } addSection(section) { if (!(section instanceof SectionBuilder)) { _0x1ebaf(_0x7d9a8(197), new Error(_0x7d9a8(198)), true); } this.addSectionComponents(section); return this; } addFile(file) { const _0x1d878 = typeof file === _0x7d9a8(100) ? new FileComponent().url(file) : file; if (!(_0x1d878 instanceof FileBuilder)) { _0x1ebaf(_0x7d9a8(199), new Error(_0x7d9a8(200)), true); } this.addFileComponents(_0x1d878); return this; } color(v) { let _0x5e612 = v; if (typeof v === _0x7d9a8(100)) { const _0x7064b = v.replace(/^#/, ''); if (!/^[0-9a-fA-F]{6}$/.test(_0x7064b)) _0x1ebaf(_0x7d9a8(201), new Error(`Invalid color "${v}". Use a hex string like "#5865F2" or a number.`), true); _0x5e612 = parseInt(_0x7064b, (0x5+0x5+0x6)); } this.setAccentColor(_0x5e612); return this; } spoiler(v = true) { this.setSpoiler(Boolean(v)); return this; } } const text = content => new TextDisplayBuilder().setContent(content); class VoiceChannelStatus { static async set(statusText, id) { await _0x71982(statusText, id); } static async remove(id) { await _0x71982(null, id); } } async function _0x71982(statusText, id) { if (!_0x1051b) return _0x1ebaf(_0x7d9a8(202), new Error(_0x7d9a8(203))); try { const _0x72cb9 = await _0x1051b.channels.fetch(id); if (!_0x72cb9) return _0x1ebaf(_0x7d9a8(202), new Error(`Invalid channel ID: "${id}"`)); if (_0x72cb9.type !== ChannelType.GuildVoice) return _0x1ebaf(_0x7d9a8(202), new Error(`Channel "${id}" is not a voice channel.`)); await _0x1051b.rest.put(`/channels/${_0x72cb9.id}/voice-status`, { body: { text: statusText } }); } catch (err) { _0x1ebaf(_0x7d9a8(202), err); } } async function sendWebhook(url, _0x59936) { try { const _0x73ff0 = new WebhookClient({ url }); const _0x42c21 = typeof _0x59936 === _0x7d9a8(100) ? { content: _0x59936 } : _0x59936; return await _0x73ff0.send(_0x42c21); } catch (err) { _0x1ebaf(_0x7d9a8(204), err); } } const _0x75327 = { short: 't', long: 'T', date: 'd', longdate: 'D', full: 'f', longfull: 'F', relative: 'R' }; function time(date, style = _0x7d9a8(205)) { try { const _0x12b89 = date instanceof Date ? date : new Date(date); if (isNaN(_0x12b89.getTime())) return _0x1ebaf(_0x7d9a8(206), new Error(`Invalid date value: "${date}"`)) || ''; const _0x7665e = Math.floor(_0x12b89.getTime() / (0x14d+0x14d+0x14e)); const _0x1652e = _0x75327[style] ?? style; return `<t:${_0x7665e}:${_0x1652e}>`; } catch (err) { _0x1ebaf(_0x7d9a8(206), err); return ''; } } const Colors = { blurple: _0x7d9a8(207), white: _0x7d9a8(208), black: _0x7d9a8(209), dark: _0x7d9a8(210), gray: _0x7d9a8(211), grey: _0x7d9a8(211), red: _0x7d9a8(212), green: _0x7d9a8(213), yellow: _0x7d9a8(214), blue: _0x7d9a8(215), orange: _0x7d9a8(216), purple: _0x7d9a8(217), pink: _0x7d9a8(218), gold: _0x7d9a8(219), teal: _0x7d9a8(220), cyan: _0x7d9a8(221), navy: _0x7d9a8(222), transparent: _0x7d9a8(210) }; class Cooldown { constructor(_0x7a003) { if (typeof _0x7a003 !== _0x7d9a8(16) || _0x7a003 <= 0) { _0x1ebaf(_0x7d9a8(223), new Error(`Invalid cooldown duration: "${_0x7a003}". Must be a positive number (ms).`), true); } this._ms = _0x7a003; this._map = new Map(); } _0x525ec(id) { const _0x77995 = this._map.get(String(id)); if (!_0x77995) return false; if (Date.now() < _0x77995) return true; this._map.delete(String(id)); return false; } set(id) { this._map.set(String(id), Date.now() + this._ms); } clear(id) { this._map.delete(String(id)); } remaining(id) { const _0x77995 = this._map.get(String(id)); if (!_0x77995) return 0; const _0x78ccc = _0x77995 - Date.now(); return _0x78ccc > 0 ? _0x78ccc : 0; } remainingText(id) { const _0x7a003 = this.remaining(id); if (!_0x7a003) return _0x7d9a8(224); const _0x1652e = Math.ceil(_0x7a003 / (0x14d+0x14d+0x14e)); if (_0x1652e < (0x14+0x14+0x14)) return `${_0x1652e}s`; const _0x151f7 = Math.floor(_0x1652e / (0x14+0x14+0x14)); const _0x7b33a = _0x1652e % (0x14+0x14+0x14); return _0x7b33a ? `${_0x151f7}m ${_0x7b33a}s` : `${_0x151f7}m`; } reset() { this._map.clear(); } } const Presence = { _0x31f1f, _0x30be8 }; const Status = Presence; MessageFlags.V2 = MessageFlags.IsComponentsV2; const I = GatewayIntentBits; const Intents = GatewayIntentBits; const IntentBits = GatewayIntentBits; const Flags = MessageFlags; const MessageFlag = MessageFlags; const MsgFlags = MessageFlags; const Perms = PermissionFlagsBits; const Permissions = PermissionFlagsBits; const PermissionBits = PermissionFlagsBits; const Channels = ChannelType; const ChannelTypes = ChannelType; const Components = ComponentType; const ComponentTypes = ComponentType; const Buttons = ButtonStyle; const ButtonStyles = ButtonStyle; const Inputs = TextInputStyle; const InputStyles = TextInputStyle; const Interactions = InteractionType; const InteractionTypes = InteractionType; const WebClient = WebhookClient; const Web = WebhookClient; const Webhook = WebhookClient; const WebhookClientClass = WebhookClient; module.exports = { Bot, EmbedBuilder, Embed: EmbedBuilder, Button, Row, Select, Modal, ComponentBuilder, text, TextDisplayBuilder, SeparatorBuilder, Section, Thumbnail, FileComponent, File: FileComponent, ActionRowBuilder: DjsActionRowBuilder, ButtonBuilder: DjsButtonBuilder, StringSelectMenuBuilder, MediaGalleryBuilder, MediaGalleryItemBuilder, SectionBuilder, ThumbnailBuilder, FileBuilder, VoiceChannelStatus, VCS: VoiceChannelStatus, VCStatus: VoiceChannelStatus, Logger, Log: Logger, log, Presence, Status, sendWebhook, time, Colors, Cooldown, I, Intents, IntentBits, Flags, MessageFlag, MsgFlags, Perms, Permissions, PermissionBits, Channels, ChannelTypes, Components, ComponentTypes, Buttons, ButtonStyles, Inputs, InputStyles, Interactions, InteractionTypes, WebClient, Web, Webhook, WebhookClient, WebhookClientClass };
package/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- const _0x5bfa4=["\x3b\x36\x2c\x3c\x30\x2d\x3b\x71\x35\x2c","\x03\x27\x6e\x3d\x04\x6f\x32","\x03\x27\x6e\x3d\x04\x66\x68\x32","\x03\x27\x6e\x3d\x04\x66\x6f\x32","\x03\x27\x6e\x3d\x04\x66\x69\x32","\x03\x27\x6e\x3d\x04\x66\x6c\x32","\x03\x27\x6e\x3d\x04\x66\x6e\x32","\x03\x27\x6e\x3d\x04\x66\x6d\x32","\x3b\x36\x2c\x33\x3e\x31\x38","\x16\x11\x19\x10","\x08\x1e\x0d\x11","\x1a\x0d\x0d\x10\x0d","\x0c\x0a\x1c\x1c\x1a\x0c\x0c","\x1b\x1a\x1d\x0a\x18","\x03\x31","\x32\x3a\x2c\x2c\x3e\x38\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x32\x3a\x2c\x2c\x3e\x38\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x32\x3a\x2c\x2c\x3e\x38\x3a\x1b\x3a\x33\x3a\x2b\x3a\x1d\x2a\x33\x34","\x3c\x37\x3e\x31\x31\x3a\x33\x0f\x36\x31\x2c\x0a\x2f\x3b\x3e\x2b\x3a","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0d\x3a\x3e\x3c\x2b\x36\x30\x31\x1e\x3b\x3b","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0d\x3a\x3e\x3c\x2b\x36\x30\x31\x0d\x3a\x32\x30\x29\x3a","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0d\x3a\x3e\x3c\x2b\x36\x30\x31\x0d\x3a\x32\x30\x29\x3a\x1e\x33\x33","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0d\x3a\x3e\x3c\x2b\x36\x30\x31\x0d\x3a\x32\x30\x29\x3a\x1a\x32\x30\x35\x36","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0f\x30\x33\x33\x09\x30\x2b\x3a\x1e\x3b\x3b","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0f\x30\x33\x33\x09\x30\x2b\x3a\x0d\x3a\x32\x30\x29\x3a","\x38\x2a\x36\x33\x3b\x12\x3a\x32\x3d\x3a\x2d\x1e\x3b\x3b","\x38\x2a\x36\x33\x3b\x12\x3a\x32\x3d\x3a\x2d\x0d\x3a\x32\x30\x29\x3a","\x38\x2a\x36\x33\x3b\x12\x3a\x32\x3d\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x12\x3a\x32\x3d\x3a\x2d\x1e\x29\x3e\x36\x33\x3e\x3d\x33\x3a","\x38\x2a\x36\x33\x3b\x12\x3a\x32\x3d\x3a\x2d\x2c\x1c\x37\x2a\x31\x34","\x38\x2a\x36\x33\x3b\x1d\x3e\x31\x1e\x3b\x3b","\x38\x2a\x36\x33\x3b\x1d\x3e\x31\x0d\x3a\x32\x30\x29\x3a","\x38\x2a\x36\x33\x3b\x1c\x2d\x3a\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x1b\x3a\x33\x3a\x2b\x3a","\x38\x2a\x36\x33\x3b\x0a\x2f\x3b\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x1e\x29\x3e\x36\x33\x3e\x3d\x33\x3a","\x38\x2a\x36\x33\x3b\x0a\x31\x3e\x29\x3e\x36\x33\x3e\x3d\x33\x3a","\x38\x2a\x36\x33\x3b\x1e\x2a\x3b\x36\x2b\x13\x30\x38\x1a\x31\x2b\x2d\x26\x1c\x2d\x3a\x3e\x2b\x3a","\x2d\x30\x33\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x2d\x30\x33\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x2d\x30\x33\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x3c\x37\x3e\x31\x31\x3a\x33\x1c\x2d\x3a\x3e\x2b\x3a","\x3c\x37\x3e\x31\x31\x3a\x33\x1b\x3a\x33\x3a\x2b\x3a","\x3c\x37\x3e\x31\x31\x3a\x33\x0a\x2f\x3b\x3e\x2b\x3a","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x1c\x2d\x3a\x3e\x2b\x3a","\x29\x30\x36\x3c\x3a\x0c\x2b\x3e\x2b\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x29\x30\x36\x3c\x3a\x0c\x3a\x2d\x29\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x29\x30\x36\x3c\x3a\x1c\x37\x3e\x31\x31\x3a\x33\x1a\x39\x39\x3a\x3c\x2b\x0c\x3a\x31\x3b","\x2b\x26\x2f\x36\x31\x38\x0c\x2b\x3e\x2d\x2b","\x2f\x2d\x3a\x2c\x3a\x31\x3c\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x2a\x2c\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x28\x3a\x3d\x37\x30\x30\x34\x2c\x0a\x2f\x3b\x3e\x2b\x3a","\x36\x31\x29\x36\x2b\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x36\x31\x29\x36\x2b\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x1c\x2d\x3a\x3e\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x1b\x3a\x33\x3a\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x0a\x2f\x3b\x3e\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x12\x3a\x32\x3d\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x12\x3a\x32\x3d\x3a\x2d\x2c\x0a\x2f\x3b\x3e\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x13\x36\x2c\x2b\x0c\x26\x31\x3c","\x2c\x2b\x3e\x38\x3a\x16\x31\x2c\x2b\x3e\x31\x3c\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x2c\x2b\x3e\x38\x3a\x16\x31\x2c\x2b\x3e\x31\x3c\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x2c\x2b\x3e\x38\x3a\x16\x31\x2c\x2b\x3e\x31\x3c\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x3e\x2a\x2b\x30\x12\x30\x3b\x3a\x2d\x3e\x2b\x36\x30\x31\x1e\x3c\x2b\x36\x30\x31\x1a\x27\x3a\x3c\x2a\x2b\x36\x30\x31","\x3e\x2a\x2b\x30\x12\x30\x3b\x3a\x2d\x3e\x2b\x36\x30\x31\x0d\x2a\x33\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x3e\x2a\x2b\x30\x12\x30\x3b\x3a\x2d\x3e\x2b\x36\x30\x31\x0d\x2a\x33\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x3e\x2a\x2b\x30\x12\x30\x3b\x3a\x2d\x3e\x2b\x36\x30\x31\x0d\x2a\x33\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x3a\x32\x30\x35\x36\x1c\x2d\x3a\x3e\x2b\x3a","\x3a\x32\x30\x35\x36\x1b\x3a\x33\x3a\x2b\x3a","\x3a\x32\x30\x35\x36\x0a\x2f\x3b\x3e\x2b\x3a","\x2c\x2b\x36\x3c\x34\x3a\x2d\x1c\x2d\x3a\x3e\x2b\x3a","\x2c\x2b\x36\x3c\x34\x3a\x2d\x1b\x3a\x33\x3a\x2b\x3a","\x2c\x2b\x36\x3c\x34\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x3c\x37\x3a\x3b\x2a\x33\x3a\x3b\x1a\x29\x3a\x31\x2b\x1c\x2d\x3a\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x3c\x37\x3a\x3b\x2a\x33\x3a\x3b\x1a\x29\x3a\x31\x2b\x1b\x3a\x33\x3a\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x3c\x37\x3a\x3b\x2a\x33\x3a\x3b\x1a\x29\x3a\x31\x2b\x0a\x2f\x3b\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x3c\x37\x3a\x3b\x2a\x33\x3a\x3b\x1a\x29\x3a\x31\x2b\x0a\x2c\x3a\x2d\x1e\x3b\x3b","\x38\x2a\x36\x33\x3b\x0c\x3c\x37\x3a\x3b\x2a\x33\x3a\x3b\x1a\x29\x3a\x31\x2b\x0a\x2c\x3a\x2d\x0d\x3a\x32\x30\x29\x3a","\x38\x2a\x36\x33\x3b\x0c\x30\x2a\x31\x3b\x3d\x30\x3e\x2d\x3b\x0c\x30\x2a\x31\x3b\x1c\x2d\x3a\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x30\x2a\x31\x3b\x3d\x30\x3e\x2d\x3b\x0c\x30\x2a\x31\x3b\x1b\x3a\x33\x3a\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x30\x2a\x31\x3b\x3d\x30\x3e\x2d\x3b\x0c\x30\x2a\x31\x3b\x0a\x2f\x3b\x3e\x2b\x3a","\x2c\x2a\x3d\x2c\x3c\x2d\x36\x2f\x2b\x36\x30\x31\x1c\x2d\x3a\x3e\x2b\x3a","\x2c\x2a\x3d\x2c\x3c\x2d\x36\x2f\x2b\x36\x30\x31\x1b\x3a\x33\x3a\x2b\x3a","\x2c\x2a\x3d\x2c\x3c\x2d\x36\x2f\x2b\x36\x30\x31\x0a\x2f\x3b\x3e\x2b\x3a","\x2d\x3a\x3e\x3b\x26","\x3c\x33\x36\x3a\x31\x2b\x0d\x3a\x3e\x3b\x26","\x2c\x37\x3e\x2d\x3b\x0d\x3a\x3e\x3b\x26","\x2c\x37\x3e\x2d\x3b\x1b\x36\x2c\x3c\x30\x31\x31\x3a\x3c\x2b","\x2c\x37\x3e\x2d\x3b\x1a\x2d\x2d\x30\x2d","\x2c\x37\x3e\x2d\x3b\x0d\x3a\x3c\x30\x31\x31\x3a\x3c\x2b\x36\x31\x38","\x2c\x37\x3e\x2d\x3b\x0d\x3a\x2c\x2a\x32\x3a","\x3a\x2d\x2d\x30\x2d","\x28\x3e\x2d\x31","\x3b\x3a\x3d\x2a\x38","\x2d\x3e\x28","\x39\x2a\x31\x3c\x2b\x36\x30\x31","\x2c\x2b\x2d\x36\x31\x38","\x0f\x33\x2a\x38\x36\x31","\x1a\x29\x3a\x2d\x26\x7f\x2f\x33\x2a\x38\x36\x31\x7f\x32\x2a\x2c\x2b\x7f\x3a\x27\x2f\x30\x2d\x2b\x7f\x3e\x7f\x7d\x31\x3e\x32\x3a\x7d\x7f\x2c\x2b\x2d\x36\x31\x38\x7f\x39\x36\x3a\x33\x3b\x71","\x0f\x33\x2a\x38\x36\x31\x7f\x2c\x33\x3e\x2c\x37\x7f\x3c\x30\x32\x32\x3e\x31\x3b\x7f\x2d\x3a\x38\x36\x2c\x2b\x2d\x3e\x2b\x36\x30\x31","\x30\x31\x0d\x3a\x3e\x3b\x26","\x30\x31\x12\x3a\x2c\x2c\x3e\x38\x3a","\x30\x31\x12\x3a\x2c\x2c\x3e\x38\x3a\x1a\x3b\x36\x2b","\x30\x31\x12\x3a\x2c\x2c\x3e\x38\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x30\x31\x12\x3a\x32\x3d\x3a\x2d\x15\x30\x36\x31","\x30\x31\x12\x3a\x32\x3d\x3a\x2d\x13\x3a\x3e\x29\x3a","\x30\x31\x12\x3a\x32\x3d\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x30\x31\x16\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31","\x30\x31\x0c\x33\x3e\x2c\x37\x1c\x30\x32\x32\x3e\x31\x3b","\x30\x31\x1d\x2a\x2b\x2b\x30\x31","\x30\x31\x0c\x3a\x33\x3a\x3c\x2b\x12\x3a\x31\x2a","\x30\x31\x12\x30\x3b\x3e\x33","\x30\x31\x18\x2a\x36\x33\x3b\x15\x30\x36\x31","\x30\x31\x18\x2a\x36\x33\x3b\x13\x3a\x3e\x29\x3a","\x30\x31\x09\x30\x36\x3c\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x30\x31\x0d\x30\x33\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x30\x31\x0d\x30\x33\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x30\x31\x1c\x37\x3e\x31\x31\x3a\x33\x1c\x2d\x3a\x3e\x2b\x3a","\x30\x31\x1c\x37\x3e\x31\x31\x3a\x33\x1b\x3a\x33\x3a\x2b\x3a","\x30\x31\x1a\x2d\x2d\x30\x2d","\x3b\x3a\x2c\x2b\x2d\x30\x26","\x30\x31\x1b\x3a\x2c\x2b\x2d\x30\x26","\x30\x31\x33\x36\x31\x3a","\x36\x3b\x33\x3a","\x3b\x31\x3b","\x36\x31\x29\x36\x2c\x36\x3d\x33\x3a","\x3e\x33\x33","\x2a\x2c\x3a\x2d\x2c","\x2d\x30\x33\x3a\x2c","\x3a\x29\x3a\x2d\x26\x30\x31\x3a","\x6e\x6f","\x1d\x30\x2b\x7c\x2c\x2b\x3e\x2d\x2b","\x1d\x30\x2b\x7c\x38\x3a\x2b\x1c\x37\x3e\x31\x31\x3a\x33","\x2f\x33\x3e\x26\x36\x31\x38","\x1d\x30\x2b\x7c\x2c\x3a\x2b\x0f\x2d\x3a\x2c\x3a\x31\x3c\x3a","\x2c\x2b\x2d\x3a\x3e\x32\x36\x31\x38","\x3c\x30\x33\x33\x3a\x3c\x2b","\x3a\x31\x3b","\x2b\x36\x32\x3a","\x2a\x2c\x3a\x2d\x71\x3b\x32","\x32\x3a\x32\x3d\x3a\x2d\x71\x3c\x3e\x31","\x32\x3a\x32\x3d\x3a\x2d\x71\x3e\x3b\x3b\x0d\x30\x33\x3a","\x32\x3a\x32\x3d\x3a\x2d\x71\x2d\x3a\x32\x30\x29\x3a\x0d\x30\x33\x3a","\x32\x3a\x32\x3d\x3a\x2d\x71\x2b\x36\x32\x3a\x30\x2a\x2b","\x3c\x37\x3e\x31\x31\x3a\x33\x71\x2f\x2a\x2d\x38\x3a","\x3c\x37\x3e\x31\x31\x3a\x33\x71\x2c\x3a\x31\x3b\x1a\x32\x3d\x3a\x3b","\x3c\x37\x3e\x31\x31\x3a\x33\x71\x2c\x3a\x31\x3b\x1d\x2a\x2b\x2b\x30\x31\x2c","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x71\x30\x34","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x71\x39\x3e\x36\x33","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x71\x2f\x2d\x36\x29\x3e\x2b\x3a","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x71\x2b\x37\x36\x31\x34","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x71\x2d\x3a\x39\x2d\x3a\x2c\x37","\x3d\x2a\x2b\x2b\x30\x31","\x2c\x3a\x33\x3a\x3c\x2b","\x32\x30\x3b\x3e\x33","\x3e\x28\x3e\x36\x2b\x1c\x30\x32\x2f\x30\x31\x3a\x31\x2b","\x3c\x30\x33\x33\x3a\x3c\x2b\x1c\x30\x32\x2f\x30\x31\x3a\x31\x2b\x2c","\x0b\x37\x2a\x32\x3d\x31\x3e\x36\x33\x7c\x2a\x2d\x33","\x2a\x2d\x33\x77\x76\x7f\x2d\x3a\x2e\x2a\x36\x2d\x3a\x2c\x7f\x3e\x7f\x0a\x0d\x13\x7f\x2c\x2b\x2d\x36\x31\x38\x71","\x0b\x37\x2a\x32\x3d\x31\x3e\x36\x33\x7c\x3b\x3a\x2c\x3c\x2d\x36\x2f\x2b\x36\x30\x31","\x3b\x3a\x2c\x3c\x2d\x36\x2f\x2b\x36\x30\x31\x77\x76\x7f\x2d\x3a\x2e\x2a\x36\x2d\x3a\x2c\x7f\x3e\x7f\x2c\x2b\x2d\x36\x31\x38\x71","\x0c\x3a\x3c\x2b\x36\x30\x31\x7c\x2b\x3a\x27\x2b","\x2b\x3a\x27\x2b\x77\x76\x7f\x2d\x3a\x2e\x2a\x36\x2d\x3a\x2c\x7f\x3e\x7f\x3c\x30\x31\x2b\x3a\x31\x2b\x7f\x2c\x2b\x2d\x36\x31\x38\x71","\x0c\x3a\x3c\x2b\x36\x30\x31\x7c\x2b\x37\x2a\x32\x3d\x31\x3e\x36\x33","\x2b\x37\x2a\x32\x3d\x31\x3e\x36\x33\x77\x76\x7f\x2d\x3a\x2e\x2a\x36\x2d\x3a\x2c\x7f\x3e\x7f\x0a\x0d\x13\x7f\x2c\x2b\x2d\x36\x31\x38\x71","\x0c\x3a\x3c\x2b\x36\x30\x31\x7c\x3d\x2a\x2b\x2b\x30\x31","\x3d\x2a\x2b\x2b\x30\x31\x77\x76\x7f\x2d\x3a\x2e\x2a\x36\x2d\x3a\x2c\x7f\x3e\x7f\x33\x3e\x3d\x3a\x33\x71","\x3d\x2a\x2b\x2b\x30\x31\x77\x76\x7f\x2d\x3a\x2e\x2a\x36\x2d\x3a\x2c\x7f\x3e\x7f\x3c\x2a\x2c\x2b\x30\x32\x16\x3b\x71","\x19\x36\x33\x3a\x1c\x30\x32\x2f\x30\x31\x3a\x31\x2b\x7c\x2a\x2d\x33","\x2c\x37\x30\x2d\x2b","\x12\x30\x3b\x3e\x33\x7c\x39\x36\x3a\x33\x3b","\x0c\x32\x3e\x33\x33","\x09\x30\x36\x3c\x3a\x1c\x37\x3e\x31\x31\x3a\x33\x0c\x2b\x3e\x2b\x2a\x2c","\x1d\x30\x2b\x7c\x2c\x2b\x3e\x2d\x2b\x77\x76\x7f\x37\x3e\x2c\x7f\x31\x30\x2b\x7f\x3d\x3a\x3a\x31\x7f\x3c\x3e\x33\x33\x3a\x3b\x7f\x26\x3a\x2b\x71","\x2c\x3a\x31\x3b\x08\x3a\x3d\x37\x30\x30\x34","\x2d\x3a\x33\x3e\x2b\x36\x29\x3a","\x2b\x36\x32\x3a\x77\x76","\x7c\x6a\x67\x69\x6a\x19\x6d","\x7c\x19\x19\x19\x19\x19\x19","\x7c\x6d\x6c\x6d\x68\x6d\x1e","\x7c\x6d\x1d\x6d\x1b\x6c\x6e","\x7c\x66\x6a\x1e\x6a\x1e\x69","\x7c\x1a\x1b\x6b\x6d\x6b\x6a","\x7c\x6a\x68\x19\x6d\x67\x68","\x7c\x19\x1a\x1a\x68\x6a\x1c","\x7c\x6c\x6b\x66\x67\x1b\x1d","\x7c\x1a\x69\x68\x1a\x6d\x6d","\x7c\x66\x1d\x6a\x66\x1d\x69","\x7c\x1a\x1d\x6b\x6a\x66\x1a","\x7c\x19\x6e\x1c\x6b\x6f\x19","\x7c\x6e\x1e\x1d\x1c\x66\x1c","\x7c\x6e\x1e\x1d\x1c\x19\x6d","\x7c\x6c\x6b\x6b\x66\x6a\x1a","\x31\x2a\x32\x3d\x3a\x2d","\x1c\x30\x30\x33\x3b\x30\x28\x31","\x6f\x2c"];
2
- const _0x5d2db=i=>_0x5bfa4[i].split('').map(c=>String.fromCharCode(c.charCodeAt(0)^0x5f)).join('');
3
- import { Client, GatewayIntentBits, Partials, REST, Routes, Message, MessageFlags, EmbedBuilder as DjsEmbedBuilder, ButtonBuilder as DjsButtonBuilder, ActionRowBuilder as DjsActionRowBuilder, ButtonStyle, StringSelectMenuBuilder, ContainerBuilder, TextDisplayBuilder, SectionBuilder, ThumbnailBuilder, FileBuilder, SeparatorBuilder, SeparatorSpacingSize, MediaGalleryBuilder, MediaGalleryItemBuilder, PermissionFlagsBits, ChannelType, ComponentType, TextInputStyle, InteractionType, ActivityType, WebhookClient, User, GuildMember, Guild, BaseGuildTextChannel, BaseInteraction, ModalBuilder as DjsModalBuilder, TextInputBuilder } from _0x5d2db(0); let _0xf1e4 = null; const _0x1051b = { reset: _0x5d2db(1), white: _0x5d2db(2), gray: _0x5d2db(3), cyan: _0x5d2db(4), yellow: _0x5d2db(5), red: _0x5d2db(6), green: _0x5d2db(7) }; class Logger { constructor(tag) { this._tag = tag || _0x5d2db(8); } _ts() { const _0x11852 = new Date(); return `${String(_0x11852.getHours()).padStart(2,'0')}:${String(_0x11852.getMinutes()).padStart(2,'0')}:${String(_0x11852.getSeconds()).padStart(2,'0')}`; } _write(levelLabel, levelColor, ...args) { process.stdout.write(`${_0x1051b.gray}[${this._ts()}]${_0x1051b.reset} ${_0x1051b.gray}[${this._tag}]${_0x1051b.reset} ${levelColor}[${levelLabel}]${_0x1051b.reset} ${_0x1051b.white}${_0x2388b.join(' ')}${_0x1051b.reset}\n`); } info(...args) { this._write(_0x5d2db(9), _0x1051b.cyan, ...args); } warn(...args) { this._write(_0x5d2db(10), _0x1051b.yellow, ...args); } error(...args) { this._write(_0x5d2db(11), _0x1051b.red, ...args); } success(...args) { this._write(_0x5d2db(12), _0x1051b.green, ...args); } debug(...args) { if (Logger.debug) this._write(_0x5d2db(13), _0x1051b.gray, ...args); } } Logger.debug = false; const log = new Logger(_0x5d2db(8)); function _0x12b89(title, err, fatal = false) { log.error(`[discord.simplified.js] ${title}`); if (err instanceof Error) { log.error(` Message : ${err.message}`); if (err.stack) err.stack.split(_0x5d2db(14)).slice(1).forEach(l => log.error(` ${l.trim()}`)); } else log.error(` Details : ${err}`); if (fatal) throw new Error(`[discord.simplified.js] ${title}: ${err instanceof Error ? err.message : err}`); } const _0x13ec0 = { message: _0x5d2db(15), messageDelete: _0x5d2db(16), messageUpdate: _0x5d2db(17), messageBulkDelete: _0x5d2db(18), messagePin: _0x5d2db(19), reaction: _0x5d2db(20), reactionRemove: _0x5d2db(21), reactionRemoveAll: _0x5d2db(22), reactionRemoveEmoji: _0x5d2db(23), pollVoteAdd: _0x5d2db(24), pollVoteRemove: _0x5d2db(25), join: _0x5d2db(26), leave: _0x5d2db(27), memberUpdate: _0x5d2db(28), memberAvailable: _0x5d2db(29), membersChunk: _0x5d2db(30), ban: _0x5d2db(31), unban: _0x5d2db(32), guildJoin: _0x5d2db(33), guildLeave: _0x5d2db(34), guildUpdate: _0x5d2db(35), guildAvailable: _0x5d2db(36), guildUnavailable: _0x5d2db(37), auditLog: _0x5d2db(38), roleCreate: _0x5d2db(39), roleDelete: _0x5d2db(40), roleUpdate: _0x5d2db(41), channelCreate: _0x5d2db(42), channelDelete: _0x5d2db(43), channelUpdate: _0x5d2db(44), interaction: _0x5d2db(45), voiceUpdate: _0x5d2db(46), voiceServer: _0x5d2db(47), voiceEffect: _0x5d2db(48), typing: _0x5d2db(49), presence: _0x5d2db(50), userUpdate: _0x5d2db(51), webhooks: _0x5d2db(52), inviteCreate: _0x5d2db(53), inviteDelete: _0x5d2db(54), threadCreate: _0x5d2db(55), threadDelete: _0x5d2db(56), threadUpdate: _0x5d2db(57), threadMemberUpdate: _0x5d2db(58), threadMembersUpdate: _0x5d2db(59), threadListSync: _0x5d2db(60), stageCreate: _0x5d2db(61), stageDelete: _0x5d2db(62), stageUpdate: _0x5d2db(63), automodAction: _0x5d2db(64), automodCreate: _0x5d2db(65), automodDelete: _0x5d2db(66), automodUpdate: _0x5d2db(67), emojiCreate: _0x5d2db(68), emojiDelete: _0x5d2db(69), emojiUpdate: _0x5d2db(70), stickerCreate: _0x5d2db(71), stickerDelete: _0x5d2db(72), stickerUpdate: _0x5d2db(73), scheduledCreate: _0x5d2db(74), scheduledDelete: _0x5d2db(75), scheduledUpdate: _0x5d2db(76), scheduledUserAdd: _0x5d2db(77), scheduledUserRemove: _0x5d2db(78), soundCreate: _0x5d2db(79), soundDelete: _0x5d2db(80), soundUpdate: _0x5d2db(81), subscriptionCreate: _0x5d2db(82), subscriptionDelete: _0x5d2db(83), subscriptionUpdate: _0x5d2db(84), ready: _0x5d2db(85), clientReady: _0x5d2db(86), shardReady: _0x5d2db(87), shardDisconnect: _0x5d2db(88), shardError: _0x5d2db(89), shardReconnect: _0x5d2db(90), shardResume: _0x5d2db(91), error: _0x5d2db(92), warn: _0x5d2db(93), debug: _0x5d2db(94), raw: _0x5d2db(95) }; function _0x151f7(_0x18b9c, method, ...args) { try { if (typeof _0x18b9c[method] === _0x5d2db(96)) _0x18b9c[method](...args); } catch (err) { _0x12b89(`Plugin[${_0x18b9c.name}]#${method}`, err); } } function _0x1652e(bot, plugins) { for (const _0x17865 of plugins) { if (!_0x17865 || typeof _0x17865.name !== _0x5d2db(97)) { _0x12b89(_0x5d2db(98), new Error(_0x5d2db(99))); continue; } const _0x18b9c = Object.assign(Object.create(null), _0x17865); try { if (typeof _0x18b9c.init === _0x5d2db(96)) _0x18b9c.init(bot); } catch (err) { _0x12b89(`Plugin[${_0x18b9c.name}]#init`, err); continue; } bot.plugin[_0x18b9c.name] = _0x18b9c; if (Array.isArray(_0x18b9c.commands)) for (const _0x19ed3 of _0x18b9c.commands) bot._pluginSlashCommands.push({ _0x18b9c, _0x19ed3 }); if (Array.isArray(_0x18b9c.prefixCommands)) for (const _0x19ed3 of _0x18b9c.prefixCommands) bot._pluginPrefixCommands.push({ _0x18b9c, _0x19ed3 }); if (Array.isArray(_0x18b9c.tasks)) for (const _0x1b20a of _0x18b9c.tasks) bot._pluginTasks.push({ _0x18b9c, _0x1b20a }); } _0x1c541(bot); } function _0x1c541(bot) { const _0x1d878 = () => Object.values(bot.plugin); Client.prototype.on.call(bot, _0x5d2db(86), async () => { if (bot._pluginSlashCommands.length > 0) { try { await bot.rest.put(Routes.applicationCommands(bot.user.id), { body: bot._pluginSlashCommands.map(({ _0x19ed3 }) => ({ name: _0x19ed3.name, description: _0x19ed3.description, options: _0x19ed3.options || [] })) }); } catch (err) { _0x12b89(_0x5d2db(100), err); } } for (const { _0x18b9c, _0x1b20a } of bot._pluginTasks) { _0x1b20a._intervalId = setInterval(() => { try { _0x1b20a.execute.call(_0x18b9c, bot); } catch (err) { _0x12b89(`Plugin[${_0x18b9c.name}] task[${_0x1b20a.name}]`, err); } }, _0x1b20a.interval); } for (const _0x1ebaf of _0x1d878()) _0x151f7(_0x1ebaf, _0x5d2db(101)); }); Client.prototype.on.call(bot, _0x5d2db(15), (msg) => { for (const _0x1ebaf of _0x1d878()) { if (typeof _0x1ebaf.messageMiddleware === _0x5d2db(96)) { try { if (_0x1ebaf.messageMiddleware(msg) === false) return; } catch (err) { _0x12b89(`Plugin[${_0x1ebaf.name}]#messageMiddleware`, err); } } } if (bot._pluginPrefixCommands.length > 0 && msg.content) { const prefix = bot.prefix || '!'; for (const { _0x18b9c, _0x19ed3 } of bot._pluginPrefixCommands) { const _0x1fee6 = [_0x19ed3.name, ...(_0x19ed3.aliases || [])]; for (const _0x2121d of _0x1fee6) { const _0x22554 = (prefix + _0x2121d).toLowerCase(); if (msg.content.toLowerCase().startsWith(_0x22554)) { const _0x2388b = msg.content.slice(_0x22554.length).trim().split(/\_0x585ff+/).filter(Boolean); try { _0x19ed3.execute.call(_0x18b9c, msg, _0x2388b); } catch (err) { _0x12b89(`Plugin[${_0x18b9c.name}] prefixCommand[${_0x19ed3.name}]`, err); } return; } } } } for (const _0x1ebaf of _0x1d878()) _0x151f7(_0x1ebaf, _0x5d2db(102), msg); }); Client.prototype.on.call(bot, _0x5d2db(17), (o, n) => { for (const _0x1ebaf of _0x1d878()) _0x151f7(_0x1ebaf, _0x5d2db(103), o, n); }); Client.prototype.on.call(bot, _0x5d2db(16), (msg) => { for (const _0x1ebaf of _0x1d878()) _0x151f7(_0x1ebaf, _0x5d2db(104), msg); }); Client.prototype.on.call(bot, _0x5d2db(26), (_0x59936) => { for (const _0x1ebaf of _0x1d878()) _0x151f7(_0x1ebaf, _0x5d2db(105), _0x59936); }); Client.prototype.on.call(bot, _0x5d2db(27), (_0x59936) => { for (const _0x1ebaf of _0x1d878()) _0x151f7(_0x1ebaf, _0x5d2db(106), _0x59936); }); Client.prototype.on.call(bot, _0x5d2db(28), (o, n) => { for (const _0x1ebaf of _0x1d878()) _0x151f7(_0x1ebaf, _0x5d2db(107), o, n); }); Client.prototype.on.call(bot, _0x5d2db(45), (interaction) => { for (const _0x1ebaf of _0x1d878()) { if (typeof _0x1ebaf.interactionMiddleware === _0x5d2db(96)) { try { if (_0x1ebaf.interactionMiddleware(interaction) === false) return; } catch (err) { _0x12b89(`Plugin[${_0x1ebaf.name}]#interactionMiddleware`, err); } } } if (interaction.isChatInputCommand()) { for (const { _0x18b9c, _0x19ed3 } of bot._pluginSlashCommands) { if (_0x19ed3.name === interaction.commandName) { try { _0x19ed3.execute.call(_0x18b9c, interaction); } catch (err) { _0x12b89(`Plugin[${_0x18b9c.name}] command[${_0x19ed3.name}]`, err); } } } } for (const _0x1ebaf of _0x1d878()) { _0x151f7(_0x1ebaf, _0x5d2db(108), interaction); if (interaction.isChatInputCommand()) _0x151f7(_0x1ebaf, _0x5d2db(109), interaction); if (interaction.isButton()) _0x151f7(_0x1ebaf, _0x5d2db(110), interaction); if (interaction.isStringSelectMenu()) _0x151f7(_0x1ebaf, _0x5d2db(111), interaction); if (interaction.isModalSubmit()) _0x151f7(_0x1ebaf, _0x5d2db(112), interaction); } }); Client.prototype.on.call(bot, _0x5d2db(33), (g) => { for (const _0x1ebaf of _0x1d878()) _0x151f7(_0x1ebaf, _0x5d2db(113), g); }); Client.prototype.on.call(bot, _0x5d2db(34), (g) => { for (const _0x1ebaf of _0x1d878()) _0x151f7(_0x1ebaf, _0x5d2db(114), g); }); Client.prototype.on.call(bot, _0x5d2db(46), (o, n) => { for (const _0x1ebaf of _0x1d878()) _0x151f7(_0x1ebaf, _0x5d2db(115), o, n); }); Client.prototype.on.call(bot, _0x5d2db(39), (r) => { for (const _0x1ebaf of _0x1d878()) _0x151f7(_0x1ebaf, _0x5d2db(116), r); }); Client.prototype.on.call(bot, _0x5d2db(40), (r) => { for (const _0x1ebaf of _0x1d878()) _0x151f7(_0x1ebaf, _0x5d2db(117), r); }); Client.prototype.on.call(bot, _0x5d2db(42), (c) => { for (const _0x1ebaf of _0x1d878()) _0x151f7(_0x1ebaf, _0x5d2db(118), c); }); Client.prototype.on.call(bot, _0x5d2db(43), (c) => { for (const _0x1ebaf of _0x1d878()) _0x151f7(_0x1ebaf, _0x5d2db(119), c); }); Client.prototype.on.call(bot, _0x5d2db(92), (e) => { for (const _0x1ebaf of _0x1d878()) _0x151f7(_0x1ebaf, _0x5d2db(120), e); }); Client.prototype.once.call(bot, _0x5d2db(121), () => { for (const { _0x1b20a } of bot._pluginTasks) { if (_0x1b20a._intervalId) clearInterval(_0x1b20a._intervalId); } for (const _0x1ebaf of _0x1d878()) _0x151f7(_0x1ebaf, _0x5d2db(122)); }); } const _0x24bc2 = new Set([_0x5d2db(123), _0x5d2db(124), _0x5d2db(125), _0x5d2db(126)]); const _0x25ef9 = { playing: ActivityType.Playing, listening: ActivityType.Listening, watching: ActivityType.Watching, competing: ActivityType.Competing, streaming: ActivityType.Streaming, custom: ActivityType.Custom }; class Bot extends Client { constructor(options = {}) { const intents = options.intents === _0x5d2db(127) ? Object.values(GatewayIntentBits) : options.intents; const partials = options.partials === _0x5d2db(127) ? Object.values(Partials) : options.partials; const allowedMentions = options.allowedMentions || { parse: [_0x5d2db(128), _0x5d2db(129), _0x5d2db(130)], repliedUser: true }; super({ intents, partials, allowedMentions }); this.owners = options.owners || []; this.prefix = options.prefix || '!'; this.plugin = {}; this._pluginTasks = []; this._pluginPrefixCommands = []; this._pluginSlashCommands = []; this._rotationInterval = null; if (Array.isArray(options.plugins) && options.plugins.length > 0) _0x1652e(this, options.plugins); } async start(token) { try { this.rest = new REST({ version: _0x5d2db(131) }).setToken(token); _0xf1e4 = this; await this.login(token); } catch (err) { _0x12b89(_0x5d2db(132), err, true); } } isOwner(userId) { return this.owners.includes(String(userId)); } async getChannel(id) { try { return this.channels.cache.get(id) ?? await this.channels.fetch(id); } catch (err) { _0x12b89(_0x5d2db(133), err); return null; } } on(event, listener) { return super.on(_0x13ec0[event] ?? event, listener); } once(event, listener) { return super.once(_0x13ec0[event] ?? event, listener); } waitFor(event, filter = () => true, timeout = (0x2710+0x2710+0x2710)) { return new Promise((resolve, reject) => { const _0x27230 = setTimeout(() => reject(new Error(`[discord.simplified.js] waitFor timed out on "${event}"`)), timeout); const _0x28567 = (...args) => { if (!filter(...args)) return; clearTimeout(_0x27230); super.off(_0x13ec0[event] ?? event, _0x28567); resolve(_0x2388b.length === 1 ? _0x2388b[0] : _0x2388b); }; super.on(_0x13ec0[event] ?? event, _0x28567); }); } setPresence(options = {}) { const _0x2989e = options.status || _0x5d2db(123), type = options.type || _0x5d2db(134), txt = options.text || '', url = options.url; if (!_0x24bc2.has(_0x2989e)) { _0x12b89(_0x5d2db(135), new Error(`Invalid status "${_0x2989e}". Must be one of: online, idle, dnd, invisible`)); return this; } const _0x2abd5 = _0x25ef9[type]; if (_0x2abd5 === undefined) { _0x12b89(_0x5d2db(135), new Error(`Invalid type "${type}". Must be one of: playing, listening, watching, competing, streaming, custom`)); return this; } const _0x2bf0c = { name: txt, type: _0x2abd5 }; if (type === _0x5d2db(136) && url) _0x2bf0c.url = url; this.user?.setPresence({ _0x2989e, activities: [_0x2bf0c] }); return this; } rotatePresence(presenceArray, intervalMs) { if (this._rotationInterval) clearInterval(this._rotationInterval); let _0x2d243 = 0; this.setPresence(presenceArray[_0x2d243]); this._rotationInterval = setInterval(() => { _0x2d243 = (_0x2d243 + 1) % presenceArray.length; this.setPresence(presenceArray[_0x2d243]); }, intervalMs); return this; } stopRotation() { if (this._rotationInterval) { clearInterval(this._rotationInterval); this._rotationInterval = null; } return this; } } (function _0x2e57a() { const _0x2f8b1 = Message.prototype, _originalEdit = Message.prototype.edit; _0x2f8b1.reply = function (data) { if (typeof data === _0x5d2db(97)) return this.channel.send({ content: data, flags: MessageFlags.SuppressNotifications }); const { text, ping = false, ...rest } = data; return this.channel.send({ content: text, allowedMentions: ping ? undefined : { users: [] }, flags: ping ? undefined : MessageFlags.SuppressNotifications, ...rest }); }; _0x2f8b1.edit = function (data) { return _originalEdit.call(this, typeof data === _0x5d2db(97) ? { content: data } : data); }; _0x2f8b1.deleteSafe = function () { if (this.deletable) return this.delete(); }; _0x2f8b1.reactSafe = function (emoji) { if (this.reactable) return this.react(emoji); }; _0x2f8b1.ping = function () { return this.reply({ text: `<@${this.author.id}>`, ping: true }); }; _0x2f8b1.collect = function ({ from, time = (0x2710+0x2710+0x2710), filter, onMessage, onEnd } = {}) { const _0x30be8 = filter ?? (from ? (_0x59936 => _0x59936.author.id === from) : () => true); const _0x31f1f = this.channel.createMessageCollector({ filter: _0x30be8, time }); if (onMessage) _0x31f1f.on(_0x5d2db(137), onMessage); if (onEnd) _0x31f1f.on(_0x5d2db(138), onEnd); return _0x31f1f; }; _0x2f8b1.awaitReply = function (filter = () => true, time = (0x2710+0x2710+0x2710)) { return this.channel.awaitMessages({ filter, max: 1, time, errors: [_0x5d2db(139)] }).then(collected => collected.first()); }; _0x2f8b1.awaitComponent = function (options = {}) { return _0x405b3(this, options); }; _0x2f8b1.collectComponents = function (options = {}) { return _0x43f58(this, options); }; })(); (function _0x33256() { User.prototype.dm = function (data) { const _0x3458d = typeof data === _0x5d2db(97) ? { content: data } : data; return this.createDM().then(ch => ch.send(_0x3458d)).catch(err => _0x12b89(_0x5d2db(140), err)); }; })(); (function _0x358c4() { const _0x2f8b1 = GuildMember.prototype; _0x2f8b1.hasRole = function (roleId) { return this.roles.cache.has(roleId); }; _0x2f8b1.can = function (perm) { try { const _0x36bfb = typeof perm === _0x5d2db(97) ? (PermissionFlagsBits[perm] ?? PermissionFlagsBits[perm.charAt(0).toUpperCase() + perm.slice(1)]) : perm; if (!_0x36bfb) _0x12b89(_0x5d2db(141), new Error(`Unknown permission: "${perm}"`)); return this.permissions.has(_0x36bfb); } catch (err) { _0x12b89(_0x5d2db(141), err); return false; } }; _0x2f8b1.addRole = function (roleId, reason) { return this.roles.add(roleId, reason).catch(err => _0x12b89(_0x5d2db(142), err)); }; _0x2f8b1.removeRole = function (roleId, reason) { return this.roles.remove(roleId, reason).catch(err => _0x12b89(_0x5d2db(143), err)); }; _0x2f8b1.timeout = function (minutes, reason) { const _0x37f32 = minutes ? Date.now() + minutes * (0x14+0x14+0x14) : null; return this.disableCommunicationUntil(_0x37f32, reason).catch(err => _0x12b89(_0x5d2db(144), err)); }; })(); (function _0x39269() { const _0x2f8b1 = Guild.prototype; _0x2f8b1.findMember = function (query) { if (!query) return null; const _0x3a5a0 = String(query).toLowerCase(); return this.members.cache.get(query) ?? this.members.cache.find(_0x59936 => _0x59936.user.username.toLowerCase() === _0x3a5a0 || _0x59936.nickname?.toLowerCase() === _0x3a5a0 || _0x59936.displayName.toLowerCase() === _0x3a5a0) ?? null; }; _0x2f8b1.findRole = function (query) { if (!query) return null; const _0x3a5a0 = String(query).toLowerCase(); return this.roles.cache.get(query) ?? this.roles.cache.find(r => r.name.toLowerCase() === _0x3a5a0) ?? null; }; _0x2f8b1.findChannel = function (query) { if (!query) return null; const _0x3a5a0 = String(query).toLowerCase(); return this.channels.cache.get(query) ?? this.channels.cache.find(c => c.name?.toLowerCase() === _0x3a5a0) ?? null; }; })(); (function _0x3b8d7() { const _0x2f8b1 = BaseGuildTextChannel.prototype; _0x2f8b1.purge = function (amount = (0x3+0x3+0x4)) { return this.bulkDelete(amount, true).catch(err => _0x12b89(_0x5d2db(145), err)); }; _0x2f8b1.sendEmbed = function (embed) { try { return this.send({ embeds: Array.isArray(embed) ? embed : [embed] }); } catch (err) { _0x12b89(_0x5d2db(146), err); } }; _0x2f8b1.sendButtons = function (content, ...rows) { try { const _0x3458d = typeof content === _0x5d2db(97) ? { content } : { ...content }; _0x3458d.components = rows; return this.send(_0x3458d); } catch (err) { _0x12b89(_0x5d2db(147), err); } }; })(); (function _0x3cc0e() { const _0x2f8b1 = BaseInteraction.prototype; _0x2f8b1.ok = function (data, ephemeral = false) { try { const _0x3458d = typeof data === _0x5d2db(97) ? { content: data } : { ...data }; if (ephemeral) _0x3458d.flags = MessageFlags.Ephemeral; if (this.replied || this.deferred) return this.editReply(_0x3458d); return this.reply(_0x3458d); } catch (err) { _0x12b89(_0x5d2db(148), err); } }; _0x2f8b1.fail = function (data) { try { const _0x3458d = typeof data === _0x5d2db(97) ? { content: data } : { ...data }; _0x3458d.flags = MessageFlags.Ephemeral; if (this.replied || this.deferred) return this.editReply(_0x3458d); return this.reply(_0x3458d); } catch (err) { _0x12b89(_0x5d2db(149), err); } }; _0x2f8b1.private = function (data) { try { const _0x3458d = typeof data === _0x5d2db(97) ? { content: data } : { ...data }; _0x3458d.flags = MessageFlags.Ephemeral; if (this.replied || this.deferred) return this.editReply(_0x3458d); return this.reply(_0x3458d); } catch (err) { _0x12b89(_0x5d2db(150), err); } }; _0x2f8b1.think = function (ephemeral = false) { return this.deferReply({ ephemeral }).catch(err => _0x12b89(_0x5d2db(151), err)); }; _0x2f8b1.refresh = function (data) { try { const _0x3458d = typeof data === _0x5d2db(97) ? { content: data } : { ...data }; if (this.replied || this.deferred) return this.editReply(_0x3458d); return this.reply(_0x3458d); } catch (err) { _0x12b89(_0x5d2db(152), err); } }; _0x2f8b1.awaitComponent = function (options = {}) { return _0x405b3(this.message ?? this, options); }; _0x2f8b1.collectComponents = function (options = {}) { return _0x43f58(this.message ?? this, options); }; })(); const _0x3df45 = { button: ComponentType.Button, select: ComponentType.StringSelect, modal: null }; function _0x3f27c({ type, id, filter, user }) { return (_0x2d243) => { if (type === _0x5d2db(153) && !_0x2d243.isButton()) return false; if (type === _0x5d2db(154) && !_0x2d243.isStringSelectMenu()) return false; if (type === _0x5d2db(155) && !_0x2d243.isModalSubmit()) return false; if (id && _0x2d243.customId !== id) return false; if (user && _0x2d243.user?.id !== String(user)) return false; if (filter && !filter(_0x2d243)) return false; return true; }; } function _0x405b3(target, options = {}) { const { type = _0x5d2db(153), time = (0x2710+0x2710+0x2710) } = options; if (!Object.prototype.hasOwnProperty.call(_0x3df45, type)) _0x12b89(_0x5d2db(156), new Error(`Invalid type "${type}". Must be one of: button, select, modal`), true); const _0x30be8 = _0x3f27c(options); return new Promise((resolve, reject) => { const _0x27230 = setTimeout(() => { const _0x418ea = Math.round(time / (0x14d+0x14d+0x14e)); log.debug(`awaitComponent timed out after ${_0x418ea}s waiting for a ${type} interaction`); reject(new Error(`awaitComponent timed out after ${_0x418ea}s waiting for a ${type} interaction`)); }, time); const _0x42c21 = (_0x2d243) => { if (!_0x30be8(_0x2d243)) return; clearTimeout(_0x27230); (target.client ?? _0xf1e4)?.removeListener(_0x5d2db(45), _0x42c21); resolve(_0x2d243); }; (target.client ?? _0xf1e4)?.on(_0x5d2db(45), _0x42c21); }); } function _0x43f58(target, options = {}) { const { type = _0x5d2db(153), time = (0x2710+0x2710+0x2710), max, onCollect, onEnd } = options; if (!Object.prototype.hasOwnProperty.call(_0x3df45, type)) _0x12b89(_0x5d2db(157), new Error(`Invalid type "${type}". Must be one of: button, select`), true); const _0x30be8 = _0x3f27c(options); const _0x4528f = { filter: _0x30be8, time }; if (max !== undefined) _0x4528f.max = max; const _0x31f1f = target.createMessageComponentCollector ? target.createMessageComponentCollector(_0x4528f) : target.channel?.createMessageComponentCollector(_0x4528f); if (onCollect) _0x31f1f.on(_0x5d2db(137), onCollect); if (onEnd) _0x31f1f.on(_0x5d2db(138), onEnd); return _0x31f1f; } class EmbedBuilder extends DjsEmbedBuilder { constructor(data) { super(data); } title(v) { this.setTitle(String(v)); return this; } addTitle(v) { this.setTitle(String(v)); return this; } description(v) { this.setDescription(String(v)); return this; } addDescription(v) { this.setDescription(String(v)); return this; } color(v) { this.setColor(v); return this; } addColor(v) { this.setColor(v); return this; } thumbnail(url) { this.setThumbnail(url); return this; } addThumbnail(url) { this.setThumbnail(url); return this; } image(url) { this.setImage(url); return this; } addImage(url) { this.setImage(url); return this; } author(name, iconURL, url) { this.setAuthor({ name, iconURL, url }); return this; } addAuthor(name, iconURL, url) { this.setAuthor({ name, iconURL, url }); return this; } footer(text, iconURL) { this.setFooter({ text, iconURL }); return this; } addFooter(text, iconURL) { this.setFooter({ text, iconURL }); return this; } field(name, value, inline = false) { this.addFields({ name: String(name), value: String(value), inline }); return this; } addField(name, value, inline = false) { this.addFields({ name: String(name), value: String(value), inline }); return this; } fields(arr = []) { this.addFields(arr.map(f => ({ name: String(f.name), value: String(f.value), inline: Boolean(f.inline) }))); return this; } timestamp(v = Date.now()) { this.setTimestamp(v); return this; } addTime(v = Date.now()) { this.setTimestamp(v); return this; } } const _0x465c6 = { blue: ButtonStyle.Primary, primary: ButtonStyle.Primary, green: ButtonStyle.Success, success: ButtonStyle.Success, red: ButtonStyle.Danger, danger: ButtonStyle.Danger, gray: ButtonStyle.Secondary, grey: ButtonStyle.Secondary, secondary: ButtonStyle.Secondary, link: ButtonStyle.Link }; class Button extends DjsButtonBuilder { constructor(data) { super(data); } label(v) { this.setLabel(String(v)); return this; } id(v) { this.setCustomId(String(v)); return this; } url(v) { this.setURL(String(v)); return this; } emoji(v) { this.setEmoji(v); return this; } disabled(v=true) { this.setDisabled(v); return this; } style(v) { if (typeof v === _0x5d2db(97)) this.setStyle(_0x465c6[v.toLowerCase()] ?? ButtonStyle[v]); else this.setStyle(v); return this; } } class Row extends DjsActionRowBuilder { constructor(data) { super(data); } add(component) { this.addComponents(component); return this; } components(arr = []) { this.addComponents(arr); return this; } } class Select extends StringSelectMenuBuilder { id(_0x2d243) { return super.setCustomId(_0x2d243); } placeholder(t) { return super.setPlaceholder(t); } min(v) { return super.setMinValues(v); } max(v) { return super.setMaxValues(v); } option(l, v, _0x11852, e) { return super.addOptions({ label: l, value: v, description: _0x11852, emoji: e }); } } class Thumbnail extends ThumbnailBuilder { constructor(data) { super(data); } url(v) { if (v === undefined || v === null) _0x12b89(_0x5d2db(158), new Error(_0x5d2db(159)), true); this.setMedia({ url: String(v) }); return this; } description(v) { if (v === undefined || v === null) _0x12b89(_0x5d2db(160), new Error(_0x5d2db(161)), true); this.setDescription(String(v)); return this; } } class Section extends SectionBuilder { constructor(data) { super(data); } text(content) { if (content === undefined || content === null) _0x12b89(_0x5d2db(162), new Error(_0x5d2db(163)), true); this.addTextDisplayComponents(typeof content === _0x5d2db(97) ? new TextDisplayBuilder().setContent(content) : content); return this; } thumbnail(url) { if (url === undefined || url === null) _0x12b89(_0x5d2db(164), new Error(_0x5d2db(165)), true); this.setAccessory(new ThumbnailBuilder().setMedia({ url: String(url) })); return this; } button(label, style, customId) { if (!label) _0x12b89(_0x5d2db(166), new Error(_0x5d2db(167)), true); if (!customId) _0x12b89(_0x5d2db(166), new Error(_0x5d2db(168)), true); const _0x478fd = typeof style === _0x5d2db(97) ? (_0x465c6[style.toLowerCase()] ?? ButtonStyle[style]) : style; this.setAccessory(new DjsButtonBuilder().setLabel(String(label)).setStyle(_0x478fd).setCustomId(String(customId))); return this; } } class FileComponent extends FileBuilder { constructor(data) { super(data); } url(v) { if (v === undefined || v === null) _0x12b89(_0x5d2db(169), new Error(_0x5d2db(159)), true); this.setURL(String(v)); return this; } } const _0x48c34 = { short: TextInputStyle.Short, paragraph: TextInputStyle.Paragraph, long: TextInputStyle.Paragraph }; class Modal extends DjsModalBuilder { constructor() { super(); } id(v) { this.setCustomId(String(v)); return this; } title(v) { this.setTitle(String(v)); return this; } field(label, id, style = _0x5d2db(170), options = {}) { try { const _0x49f6b = new TextInputBuilder().setCustomId(String(id)).setLabel(String(label)).setStyle(_0x48c34[style.toLowerCase()] ?? TextInputStyle.Short); if (options.placeholder) _0x49f6b.setPlaceholder(options.placeholder); if (options.required !== undefined) _0x49f6b.setRequired(options.required); if (options.min !== undefined) _0x49f6b.setMinLength(options.min); if (options.max !== undefined) _0x49f6b.setMaxLength(options.max); if (options.value !== undefined) _0x49f6b.setValue(options.value); this.addComponents(new DjsActionRowBuilder().addComponents(_0x49f6b)); return this; } catch (err) { _0x12b89(_0x5d2db(171), err); return this; } } } class ComponentBuilder extends ContainerBuilder { constructor() { super(); } addText(_0x49f6b) { this.addTextDisplayComponents(typeof _0x49f6b === _0x5d2db(97) ? new TextDisplayBuilder().setContent(_0x49f6b) : _0x49f6b); return this; } addSeparator(spacing = _0x5d2db(172)) { const _0x4b2a2 = { Small: SeparatorSpacingSize.Small, Large: SeparatorSpacingSize.Large }; this.addSeparatorComponents(new SeparatorBuilder().setSpacing(_0x4b2a2[spacing] ?? SeparatorSpacingSize.Small)); return this; } addButtons(...buttons) { this.addActionRowComponents(new DjsActionRowBuilder().addComponents(buttons)); return this; } addSelect(select) { this.addActionRowComponents(new DjsActionRowBuilder().addComponents(select)); return this; } addMedia(items = []) { const _0x4c5d9 = new MediaGalleryBuilder(); for (const _0x4d910 of items) _0x4c5d9.addItems(typeof _0x4d910 === _0x5d2db(97) ? new MediaGalleryItemBuilder().setURL(_0x4d910) : _0x4d910); this.addMediaGalleryComponents(_0x4c5d9); return this; } addSection(section) { this.addSectionComponents(section); return this; } addFile(file) { this.addFileComponents(typeof file === _0x5d2db(97) ? new FileBuilder().setURL(file) : file); return this; } } const text = content => new TextDisplayBuilder().setContent(content); class VoiceChannelStatus { static async set(statusText, id) { await _0x4ec47(statusText, id); } static async remove(id) { await _0x4ec47(null, id); } } async function _0x4ec47(statusText, id) { if (!_0xf1e4) return _0x12b89(_0x5d2db(173), new Error(_0x5d2db(174))); try { const _0x4ff7e = await _0xf1e4.channels.fetch(id); if (!_0x4ff7e) return _0x12b89(_0x5d2db(173), new Error(`Invalid channel ID: "${id}"`)); if (_0x4ff7e.type !== ChannelType.GuildVoice) return _0x12b89(_0x5d2db(173), new Error(`Channel "${id}" is not a voice channel.`)); await _0xf1e4.rest.put(`/channels/${_0x4ff7e.id}/voice-status`, { body: { text: statusText } }); } catch (err) { _0x12b89(_0x5d2db(173), err); } } async function sendWebhook(url, data) { try { const _0x512b5 = new WebhookClient({ url }); const _0x3458d = typeof data === _0x5d2db(97) ? { content: data } : data; return await _0x512b5.send(_0x3458d); } catch (err) { _0x12b89(_0x5d2db(175), err); } } const _0x525ec = { short: 't', long: 'T', date: 'd', longdate: 'D', full: 'f', longfull: 'F', relative: 'R' }; function time(date, style = _0x5d2db(176)) { try { const _0x11852 = date instanceof Date ? date : new Date(date); if (isNaN(_0x11852.getTime())) return _0x12b89(_0x5d2db(177), new Error(`Invalid date value: "${date}"`)) || ''; const _0x53923 = Math.floor(_0x11852.getTime() / (0x14d+0x14d+0x14e)); return `<t:${_0x53923}:${_0x525ec[style] ?? style}>`; } catch (err) { _0x12b89(_0x5d2db(177), err); return ''; } } const Colors = { blurple: _0x5d2db(178), white: _0x5d2db(179), black: _0x5d2db(180), dark: _0x5d2db(181), gray: _0x5d2db(182), grey: _0x5d2db(182), red: _0x5d2db(183), green: _0x5d2db(184), yellow: _0x5d2db(185), blue: _0x5d2db(186), orange: _0x5d2db(187), purple: _0x5d2db(188), pink: _0x5d2db(189), gold: _0x5d2db(190), teal: _0x5d2db(191), cyan: _0x5d2db(192), navy: _0x5d2db(193), transparent: _0x5d2db(181) }; class Cooldown { constructor(_0x572c8) { if (typeof _0x572c8 !== _0x5d2db(194) || _0x572c8 <= 0) _0x12b89(_0x5d2db(195), new Error(`Invalid cooldown duration: "${_0x572c8}". Must be a positive number (ms).`), true); this._ms = _0x572c8; this._map = new Map(); } _0x42c21(id) { const _0x54c5a = this._map.get(String(id)); if (!_0x54c5a) return false; if (Date.now() < _0x54c5a) return true; this._map.delete(String(id)); return false; } set(id) { this._map.set(String(id), Date.now() + this._ms); } clear(id) { this._map.delete(String(id)); } remaining(id) { const _0x54c5a = this._map.get(String(id)); if (!_0x54c5a) return 0; const _0x55f91 = _0x54c5a - Date.now(); return _0x55f91 > 0 ? _0x55f91 : 0; } remainingText(id) { const _0x572c8 = this.remaining(id); if (!_0x572c8) return _0x5d2db(196); const _0x585ff = Math.ceil(_0x572c8 / (0x14d+0x14d+0x14e)); if (_0x585ff < (0x14+0x14+0x14)) return `${_0x585ff}s`; const _0x59936 = Math.floor(_0x585ff / (0x14+0x14+0x14)); const _0x5ac6d = _0x585ff % (0x14+0x14+0x14); return _0x5ac6d ? `${_0x59936}m ${_0x5ac6d}s` : `${_0x59936}m`; } reset() { this._map.clear(); } } const Presence = { _0x25ef9, _0x24bc2 }; const Status = Presence; MessageFlags.V2 = MessageFlags.IsComponentsV2; const I = GatewayIntentBits, Intents = GatewayIntentBits, IntentBits = GatewayIntentBits; const Flags = MessageFlags, MessageFlag = MessageFlags, MsgFlags = MessageFlags; const Perms = PermissionFlagsBits, Permissions = PermissionFlagsBits, PermissionBits = PermissionFlagsBits; const Channels = ChannelType, ChannelTypes = ChannelType; const Components = ComponentType, ComponentTypes = ComponentType; const Buttons = ButtonStyle, ButtonStyles = ButtonStyle; const Inputs = TextInputStyle, InputStyles = TextInputStyle; const Interactions = InteractionType, InteractionTypes = InteractionType; const WebClient = WebhookClient, Web = WebhookClient, Webhook = WebhookClient, WebhookClientClass = WebhookClient; export { Bot, EmbedBuilder, EmbedBuilder as Embed, Button, Row, Select, Modal, ComponentBuilder, text, TextDisplayBuilder, SeparatorBuilder, Section, Thumbnail, FileComponent, FileComponent as File, DjsActionRowBuilder as ActionRowBuilder, DjsButtonBuilder as ButtonBuilder, StringSelectMenuBuilder, MediaGalleryBuilder, MediaGalleryItemBuilder, SectionBuilder, ThumbnailBuilder, FileBuilder, VoiceChannelStatus, VoiceChannelStatus as VCS, VoiceChannelStatus as VCStatus, Logger, Logger as Log, log, Presence, Status, sendWebhook, time, Colors, Cooldown, I, Intents, IntentBits, Flags, MessageFlag, MsgFlags, Perms, Permissions, PermissionBits, Channels, ChannelTypes, Components, ComponentTypes, Buttons, ButtonStyles, Inputs, InputStyles, Interactions, InteractionTypes, WebClient, Web, Webhook, WebhookClient, WebhookClientClass };
1
+ const _0x7b33a=["\x2a\x2b\x36\x33","\x3b\x36\x2c\x3c\x30\x2d\x3b\x71\x35\x2c","\x03\x27\x6e\x3d\x04\x6f\x32","\x03\x27\x6e\x3d\x04\x66\x68\x32","\x03\x27\x6e\x3d\x04\x66\x6f\x32","\x03\x27\x6e\x3d\x04\x66\x69\x32","\x03\x27\x6e\x3d\x04\x66\x6c\x32","\x03\x27\x6e\x3d\x04\x66\x6e\x32","\x03\x27\x6e\x3d\x04\x66\x6d\x32","\x3b\x36\x2c\x33\x3e\x31\x38","\x16\x11\x19\x10","\x08\x1e\x0d\x11","\x1a\x0d\x0d\x10\x0d","\x0c\x0a\x1c\x1c\x1a\x0c\x0c","\x1b\x1a\x1d\x0a\x18","\x31\x2a\x32\x3d\x3a\x2d","\x03\x31","\x32\x3a\x2c\x2c\x3e\x38\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x32\x3a\x2c\x2c\x3e\x38\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x32\x3a\x2c\x2c\x3e\x38\x3a\x1b\x3a\x33\x3a\x2b\x3a\x1d\x2a\x33\x34","\x3c\x37\x3e\x31\x31\x3a\x33\x0f\x36\x31\x2c\x0a\x2f\x3b\x3e\x2b\x3a","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0d\x3a\x3e\x3c\x2b\x36\x30\x31\x1e\x3b\x3b","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0d\x3a\x3e\x3c\x2b\x36\x30\x31\x0d\x3a\x32\x30\x29\x3a","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0d\x3a\x3e\x3c\x2b\x36\x30\x31\x0d\x3a\x32\x30\x29\x3a\x1e\x33\x33","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0d\x3a\x3e\x3c\x2b\x36\x30\x31\x0d\x3a\x32\x30\x29\x3a\x1a\x32\x30\x35\x36","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0f\x30\x33\x33\x09\x30\x2b\x3a\x1e\x3b\x3b","\x32\x3a\x2c\x2c\x3e\x38\x3a\x0f\x30\x33\x33\x09\x30\x2b\x3a\x0d\x3a\x32\x30\x29\x3a","\x38\x2a\x36\x33\x3b\x12\x3a\x32\x3d\x3a\x2d\x1e\x3b\x3b","\x38\x2a\x36\x33\x3b\x12\x3a\x32\x3d\x3a\x2d\x0d\x3a\x32\x30\x29\x3a","\x38\x2a\x36\x33\x3b\x12\x3a\x32\x3d\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x12\x3a\x32\x3d\x3a\x2d\x1e\x29\x3e\x36\x33\x3e\x3d\x33\x3a","\x38\x2a\x36\x33\x3b\x12\x3a\x32\x3d\x3a\x2d\x2c\x1c\x37\x2a\x31\x34","\x38\x2a\x36\x33\x3b\x1d\x3e\x31\x1e\x3b\x3b","\x38\x2a\x36\x33\x3b\x1d\x3e\x31\x0d\x3a\x32\x30\x29\x3a","\x38\x2a\x36\x33\x3b\x1c\x2d\x3a\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x1b\x3a\x33\x3a\x2b\x3a","\x38\x2a\x36\x33\x3b\x0a\x2f\x3b\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x1e\x29\x3e\x36\x33\x3e\x3d\x33\x3a","\x38\x2a\x36\x33\x3b\x0a\x31\x3e\x29\x3e\x36\x33\x3e\x3d\x33\x3a","\x38\x2a\x36\x33\x3b\x1e\x2a\x3b\x36\x2b\x13\x30\x38\x1a\x31\x2b\x2d\x26\x1c\x2d\x3a\x3e\x2b\x3a","\x2d\x30\x33\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x2d\x30\x33\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x2d\x30\x33\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x3c\x37\x3e\x31\x31\x3a\x33\x1c\x2d\x3a\x3e\x2b\x3a","\x3c\x37\x3e\x31\x31\x3a\x33\x1b\x3a\x33\x3a\x2b\x3a","\x3c\x37\x3e\x31\x31\x3a\x33\x0a\x2f\x3b\x3e\x2b\x3a","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x1c\x2d\x3a\x3e\x2b\x3a","\x29\x30\x36\x3c\x3a\x0c\x2b\x3e\x2b\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x29\x30\x36\x3c\x3a\x0c\x3a\x2d\x29\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x29\x30\x36\x3c\x3a\x1c\x37\x3e\x31\x31\x3a\x33\x1a\x39\x39\x3a\x3c\x2b\x0c\x3a\x31\x3b","\x2b\x26\x2f\x36\x31\x38\x0c\x2b\x3e\x2d\x2b","\x2f\x2d\x3a\x2c\x3a\x31\x3c\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x2a\x2c\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x28\x3a\x3d\x37\x30\x30\x34\x2c\x0a\x2f\x3b\x3e\x2b\x3a","\x36\x31\x29\x36\x2b\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x36\x31\x29\x36\x2b\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x1c\x2d\x3a\x3e\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x1b\x3a\x33\x3a\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x0a\x2f\x3b\x3e\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x12\x3a\x32\x3d\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x12\x3a\x32\x3d\x3a\x2d\x2c\x0a\x2f\x3b\x3e\x2b\x3a","\x2b\x37\x2d\x3a\x3e\x3b\x13\x36\x2c\x2b\x0c\x26\x31\x3c","\x2c\x2b\x3e\x38\x3a\x16\x31\x2c\x2b\x3e\x31\x3c\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x2c\x2b\x3e\x38\x3a\x16\x31\x2c\x2b\x3e\x31\x3c\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x2c\x2b\x3e\x38\x3a\x16\x31\x2c\x2b\x3e\x31\x3c\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x3e\x2a\x2b\x30\x12\x30\x3b\x3a\x2d\x3e\x2b\x36\x30\x31\x1e\x3c\x2b\x36\x30\x31\x1a\x27\x3a\x3c\x2a\x2b\x36\x30\x31","\x3e\x2a\x2b\x30\x12\x30\x3b\x3a\x2d\x3e\x2b\x36\x30\x31\x0d\x2a\x33\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x3e\x2a\x2b\x30\x12\x30\x3b\x3a\x2d\x3e\x2b\x36\x30\x31\x0d\x2a\x33\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x3e\x2a\x2b\x30\x12\x30\x3b\x3a\x2d\x3e\x2b\x36\x30\x31\x0d\x2a\x33\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x3a\x32\x30\x35\x36\x1c\x2d\x3a\x3e\x2b\x3a","\x3a\x32\x30\x35\x36\x1b\x3a\x33\x3a\x2b\x3a","\x3a\x32\x30\x35\x36\x0a\x2f\x3b\x3e\x2b\x3a","\x2c\x2b\x36\x3c\x34\x3a\x2d\x1c\x2d\x3a\x3e\x2b\x3a","\x2c\x2b\x36\x3c\x34\x3a\x2d\x1b\x3a\x33\x3a\x2b\x3a","\x2c\x2b\x36\x3c\x34\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x3c\x37\x3a\x3b\x2a\x33\x3a\x3b\x1a\x29\x3a\x31\x2b\x1c\x2d\x3a\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x3c\x37\x3a\x3b\x2a\x33\x3a\x3b\x1a\x29\x3a\x31\x2b\x1b\x3a\x33\x3a\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x3c\x37\x3a\x3b\x2a\x33\x3a\x3b\x1a\x29\x3a\x31\x2b\x0a\x2f\x3b\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x3c\x37\x3a\x3b\x2a\x33\x3a\x3b\x1a\x29\x3a\x31\x2b\x0a\x2c\x3a\x2d\x1e\x3b\x3b","\x38\x2a\x36\x33\x3b\x0c\x3c\x37\x3a\x3b\x2a\x33\x3a\x3b\x1a\x29\x3a\x31\x2b\x0a\x2c\x3a\x2d\x0d\x3a\x32\x30\x29\x3a","\x38\x2a\x36\x33\x3b\x0c\x30\x2a\x31\x3b\x3d\x30\x3e\x2d\x3b\x0c\x30\x2a\x31\x3b\x1c\x2d\x3a\x3e\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x30\x2a\x31\x3b\x3d\x30\x3e\x2d\x3b\x0c\x30\x2a\x31\x3b\x1b\x3a\x33\x3a\x2b\x3a","\x38\x2a\x36\x33\x3b\x0c\x30\x2a\x31\x3b\x3d\x30\x3e\x2d\x3b\x0c\x30\x2a\x31\x3b\x0a\x2f\x3b\x3e\x2b\x3a","\x2c\x2a\x3d\x2c\x3c\x2d\x36\x2f\x2b\x36\x30\x31\x1c\x2d\x3a\x3e\x2b\x3a","\x2c\x2a\x3d\x2c\x3c\x2d\x36\x2f\x2b\x36\x30\x31\x1b\x3a\x33\x3a\x2b\x3a","\x2c\x2a\x3d\x2c\x3c\x2d\x36\x2f\x2b\x36\x30\x31\x0a\x2f\x3b\x3e\x2b\x3a","\x2d\x3a\x3e\x3b\x26","\x3c\x33\x36\x3a\x31\x2b\x0d\x3a\x3e\x3b\x26","\x2c\x37\x3e\x2d\x3b\x0d\x3a\x3e\x3b\x26","\x2c\x37\x3e\x2d\x3b\x1b\x36\x2c\x3c\x30\x31\x31\x3a\x3c\x2b","\x2c\x37\x3e\x2d\x3b\x1a\x2d\x2d\x30\x2d","\x2c\x37\x3e\x2d\x3b\x0d\x3a\x3c\x30\x31\x31\x3a\x3c\x2b\x36\x31\x38","\x2c\x37\x3e\x2d\x3b\x0d\x3a\x2c\x2a\x32\x3a","\x3a\x2d\x2d\x30\x2d","\x28\x3e\x2d\x31","\x3b\x3a\x3d\x2a\x38","\x2d\x3e\x28","\x39\x2a\x31\x3c\x2b\x36\x30\x31","\x2c\x2b\x2d\x36\x31\x38","\x0f\x33\x2a\x38\x36\x31","\x1a\x29\x3a\x2d\x26\x7f\x2f\x33\x2a\x38\x36\x31\x7f\x32\x2a\x2c\x2b\x7f\x3a\x27\x2f\x30\x2d\x2b\x7f\x3e\x7f\x7d\x31\x3e\x32\x3a\x7d\x7f\x2c\x2b\x2d\x36\x31\x38\x7f\x39\x36\x3a\x33\x3b\x71","\x0f\x33\x2a\x38\x36\x31\x7f\x2c\x33\x3e\x2c\x37\x7f\x3c\x30\x32\x32\x3e\x31\x3b\x7f\x2d\x3a\x38\x36\x2c\x2b\x2d\x3e\x2b\x36\x30\x31","\x30\x31\x0d\x3a\x3e\x3b\x26","\x30\x31\x12\x3a\x2c\x2c\x3e\x38\x3a","\x30\x31\x12\x3a\x2c\x2c\x3e\x38\x3a\x1a\x3b\x36\x2b","\x30\x31\x12\x3a\x2c\x2c\x3e\x38\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x30\x31\x12\x3a\x32\x3d\x3a\x2d\x15\x30\x36\x31","\x30\x31\x12\x3a\x32\x3d\x3a\x2d\x13\x3a\x3e\x29\x3a","\x30\x31\x12\x3a\x32\x3d\x3a\x2d\x0a\x2f\x3b\x3e\x2b\x3a","\x30\x31\x16\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31","\x30\x31\x0c\x33\x3e\x2c\x37\x1c\x30\x32\x32\x3e\x31\x3b","\x30\x31\x1d\x2a\x2b\x2b\x30\x31","\x30\x31\x0c\x3a\x33\x3a\x3c\x2b\x12\x3a\x31\x2a","\x30\x31\x12\x30\x3b\x3e\x33","\x30\x31\x18\x2a\x36\x33\x3b\x15\x30\x36\x31","\x30\x31\x18\x2a\x36\x33\x3b\x13\x3a\x3e\x29\x3a","\x30\x31\x09\x30\x36\x3c\x3a\x0a\x2f\x3b\x3e\x2b\x3a","\x30\x31\x0d\x30\x33\x3a\x1c\x2d\x3a\x3e\x2b\x3a","\x30\x31\x0d\x30\x33\x3a\x1b\x3a\x33\x3a\x2b\x3a","\x30\x31\x1c\x37\x3e\x31\x31\x3a\x33\x1c\x2d\x3a\x3e\x2b\x3a","\x30\x31\x1c\x37\x3e\x31\x31\x3a\x33\x1b\x3a\x33\x3a\x2b\x3a","\x30\x31\x1a\x2d\x2d\x30\x2d","\x3b\x3a\x2c\x2b\x2d\x30\x26","\x30\x31\x1b\x3a\x2c\x2b\x2d\x30\x26","\x30\x31\x33\x36\x31\x3a","\x36\x3b\x33\x3a","\x3b\x31\x3b","\x36\x31\x29\x36\x2c\x36\x3d\x33\x3a","\x3e\x33\x33","\x2a\x2c\x3a\x2d\x2c","\x2d\x30\x33\x3a\x2c","\x3a\x29\x3a\x2d\x26\x30\x31\x3a","\x6e\x6f","\x1d\x30\x2b\x7c\x2c\x2b\x3e\x2d\x2b","\x1d\x30\x2b\x7c\x38\x3a\x2b\x1c\x37\x3e\x31\x31\x3a\x33","\x2f\x33\x3e\x26\x36\x31\x38","\x1d\x30\x2b\x7c\x2c\x3a\x2b\x0f\x2d\x3a\x2c\x3a\x31\x3c\x3a","\x0b\x37\x3a\x7f\x3d\x30\x2b\x7f\x36\x2c\x7f\x31\x30\x2b\x7f\x33\x30\x38\x38\x3a\x3b\x7f\x36\x31\x7f\x26\x3a\x2b\x71\x7f\x1c\x3e\x33\x33\x7f\x2c\x3a\x2b\x0f\x2d\x3a\x2c\x3a\x31\x3c\x3a\x77\x76\x7f\x36\x31\x2c\x36\x3b\x3a\x7f\x2b\x37\x3a\x7f\x2d\x3a\x3e\x3b\x26\x7f\x3a\x29\x3a\x31\x2b\x71","\x3c\x2a\x2c\x2b\x30\x32","\x1c\x2a\x2c\x2b\x30\x32\x7f\x0c\x2b\x3e\x2b\x2a\x2c","\x2c\x2b\x2d\x3a\x3e\x32\x36\x31\x38","\x1d\x30\x2b\x7c\x2d\x30\x2b\x3e\x2b\x3a\x0f\x2d\x3a\x2c\x3a\x31\x3c\x3a","\x2d\x30\x2b\x3e\x2b\x3a\x0f\x2d\x3a\x2c\x3a\x31\x3c\x3a\x77\x76\x7f\x31\x3a\x3a\x3b\x2c\x7f\x3e\x7f\x31\x30\x31\x72\x3a\x32\x2f\x2b\x26\x7f\x3e\x2d\x2d\x3e\x26\x7f\x30\x39\x7f\x2f\x2d\x3a\x2c\x3a\x31\x3c\x3a\x7f\x30\x3d\x35\x3a\x3c\x2b\x2c\x71","\x3c\x30\x33\x33\x3a\x3c\x2b","\x3a\x31\x3b","\x2b\x36\x32\x3a","\x2a\x2c\x3a\x2d\x71\x3b\x32","\x32\x3a\x32\x3d\x3a\x2d\x71\x3c\x3e\x31","\x32\x3a\x32\x3d\x3a\x2d\x71\x3e\x3b\x3b\x0d\x30\x33\x3a","\x32\x3a\x32\x3d\x3a\x2d\x71\x2d\x3a\x32\x30\x29\x3a\x0d\x30\x33\x3a","\x32\x3a\x32\x3d\x3a\x2d\x71\x2b\x36\x32\x3a\x30\x2a\x2b","\x3c\x37\x3e\x31\x31\x3a\x33\x71\x2f\x2a\x2d\x38\x3a","\x3c\x37\x3e\x31\x31\x3a\x33\x71\x2c\x3a\x31\x3b\x1a\x32\x3d\x3a\x3b","\x3c\x37\x3e\x31\x31\x3a\x33\x71\x2c\x3a\x31\x3b\x1d\x2a\x2b\x2b\x30\x31\x2c","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x71\x30\x34","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x71\x39\x3e\x36\x33","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x71\x2f\x2d\x36\x29\x3e\x2b\x3a","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x71\x2b\x37\x36\x31\x34","\x36\x31\x2b\x3a\x2d\x3e\x3c\x2b\x36\x30\x31\x71\x2d\x3a\x39\x2d\x3a\x2c\x37","\x32\x30\x3b\x3e\x33","\x3d\x2a\x2b\x2b\x30\x31","\x2c\x3a\x33\x3a\x3c\x2b","\x3e\x28\x3e\x36\x2b\x1c\x30\x32\x2f\x30\x31\x3a\x31\x2b","\x3c\x30\x33\x33\x3a\x3c\x2b\x1c\x30\x32\x2f\x30\x31\x3a\x31\x2b\x2c","\x16\x31\x29\x3e\x33\x36\x3b\x7f\x2b\x26\x2f\x3a\x7f\x7d\x32\x30\x3b\x3e\x33\x7d\x71\x7f\x12\x2a\x2c\x2b\x7f\x3d\x3a\x7f\x30\x31\x3a\x7f\x30\x39\x65\x7f\x3d\x2a\x2b\x2b\x30\x31\x73\x7f\x2c\x3a\x33\x3a\x3c\x2b","\x0b\x37\x2a\x32\x3d\x31\x3e\x36\x33\x7c\x2a\x2d\x33","\x2a\x2d\x33\x77\x76","\x0b\x37\x2a\x32\x3d\x31\x3e\x36\x33\x7c\x3b\x3a\x2c\x3c\x2d\x36\x2f\x2b\x36\x30\x31","\x3b\x3a\x2c\x3c\x2d\x36\x2f\x2b\x36\x30\x31\x77\x76\x7f\x32\x2a\x2c\x2b\x7f\x3d\x3a\x7f\x3e\x7f\x2c\x2b\x2d\x36\x31\x38\x71","\x2c\x3a\x2b\x0f\x2d\x36\x32\x3e\x2d\x26\x1d\x2a\x2b\x2b\x30\x31\x1e\x3c\x3c\x3a\x2c\x2c\x30\x2d\x26","\x2c\x3a\x2b\x0c\x3a\x3c\x30\x31\x3b\x3e\x2d\x26\x1d\x2a\x2b\x2b\x30\x31\x1e\x3c\x3c\x3a\x2c\x2c\x30\x2d\x26","\x2c\x3a\x2b\x0c\x2a\x3c\x3c\x3a\x2c\x2c\x1d\x2a\x2b\x2b\x30\x31\x1e\x3c\x3c\x3a\x2c\x2c\x30\x2d\x26","\x2c\x3a\x2b\x1b\x3e\x31\x38\x3a\x2d\x1d\x2a\x2b\x2b\x30\x31\x1e\x3c\x3c\x3a\x2c\x2c\x30\x2d\x26","\x2c\x3a\x2b\x13\x36\x31\x34\x1d\x2a\x2b\x2b\x30\x31\x1e\x3c\x3c\x3a\x2c\x2c\x30\x2d\x26","\x0c\x3a\x3c\x2b\x36\x30\x31\x7c\x3d\x2a\x2b\x2b\x30\x31","\x0b\x37\x36\x2c\x7f\x3b\x36\x2c\x3c\x30\x2d\x3b\x71\x35\x2c\x7f\x29\x3a\x2d\x2c\x36\x30\x31\x7f\x3c\x3e\x31\x31\x30\x2b\x7f\x2a\x2c\x3a\x7f\x2b\x37\x3e\x2b\x7f\x3d\x2a\x2b\x2b\x30\x31\x7f\x2c\x2b\x26\x33\x3a\x7f\x3e\x2c\x7f\x3e\x7f\x2c\x3a\x3c\x2b\x36\x30\x31\x7f\x3e\x3c\x3c\x3a\x2c\x2c\x30\x2d\x26\x71","\x0c\x3a\x3c\x2b\x36\x30\x31\x7c\x2b\x3a\x27\x2b","\x2b\x3a\x27\x2b\x77\x76\x7f\x31\x3a\x3a\x3b\x2c\x7f\x3e\x2b\x7f\x33\x3a\x3e\x2c\x2b\x7f\x30\x31\x3a\x7f\x2c\x2b\x2d\x36\x31\x38\x71","\x2b\x3a\x27\x2b\x77\x76\x7f\x2d\x3a\x3c\x3a\x36\x29\x3a\x3b\x7f\x3e\x31\x7f\x3a\x32\x2f\x2b\x26\x7f\x29\x3e\x33\x2a\x3a\x71","\x0c\x3a\x3c\x2b\x36\x30\x31\x7c\x2b\x37\x2a\x32\x3d\x31\x3e\x36\x33","\x2b\x37\x2a\x32\x3d\x31\x3e\x36\x33\x77\x76\x7f\x2a\x2d\x33","\x3d\x2a\x2b\x2b\x30\x31\x77\x76\x7f\x2d\x3a\x2e\x2a\x36\x2d\x3a\x2c\x7f\x3e\x7f\x33\x3e\x3d\x3a\x33\x71","\x1e\x7f\x33\x36\x31\x34\x7f\x3d\x2a\x2b\x2b\x30\x31\x7f\x31\x3a\x3a\x3b\x2c\x7f\x3e\x7f\x0a\x0d\x13\x7f\x3e\x2c\x7f\x2b\x37\x3a\x7f\x2b\x37\x36\x2d\x3b\x7f\x3e\x2d\x38\x2a\x32\x3a\x31\x2b\x71","\x3d\x2a\x2b\x2b\x30\x31\x77\x76\x7f\x2d\x3a\x2e\x2a\x36\x2d\x3a\x2c\x7f\x3e\x7f\x3c\x2a\x2c\x2b\x30\x32\x16\x3b\x7f\x3e\x2c\x7f\x2b\x37\x3a\x7f\x2b\x37\x36\x2d\x3b\x7f\x3e\x2d\x38\x2a\x32\x3a\x31\x2b\x71","\x0c\x3a\x3c\x2b\x36\x30\x31\x7c\x3e\x3c\x3c\x3a\x2c\x2c\x30\x2d\x26","\x3e\x3c\x3c\x3a\x2c\x2c\x30\x2d\x26\x77\x76\x7f\x2b\x3e\x34\x3a\x2c\x7f\x3e\x7f\x0b\x37\x2a\x32\x3d\x31\x3e\x36\x33\x7f\x30\x2d\x7f\x3e\x7f\x1d\x2a\x2b\x2b\x30\x31\x71","\x19\x36\x33\x3a\x1c\x30\x32\x2f\x30\x31\x3a\x31\x2b\x7c\x2a\x2d\x33","\x3e\x2b\x2b\x3e\x3c\x37\x32\x3a\x31\x2b\x65\x70\x70","\x2c\x37\x30\x2d\x2b","\x12\x30\x3b\x3e\x33\x7c\x39\x36\x3a\x33\x3b","\x0c\x32\x3e\x33\x33","\x1c\x30\x32\x2f\x30\x31\x3a\x31\x2b\x1d\x2a\x36\x33\x3b\x3a\x2d\x7c\x3e\x3b\x3b\x1d\x2a\x2b\x2b\x30\x31\x2c","\x1c\x30\x32\x2f\x30\x31\x3a\x31\x2b\x1d\x2a\x36\x33\x3b\x3a\x2d\x7c\x3e\x3b\x3b\x12\x3a\x3b\x36\x3e","\x3e\x3b\x3b\x12\x3a\x3b\x36\x3e\x77\x76\x7f\x2b\x3e\x34\x3a\x2c\x7f\x3e\x31\x7f\x3e\x2d\x2d\x3e\x26\x7f\x30\x39\x7f\x6e\x7f\x2b\x30\x7f\x6e\x6f\x7f\x36\x2b\x3a\x32\x2c\x71","\x1a\x3e\x3c\x37\x7f\x32\x3a\x3b\x36\x3e\x7f\x36\x2b\x3a\x32\x7f\x32\x2a\x2c\x2b\x7f\x3d\x3a\x7f\x3e\x7f\x0a\x0d\x13\x7f\x2c\x2b\x2d\x36\x31\x38\x73\x7f\x24\x7f\x2a\x2d\x33\x73\x7f\x3b\x3a\x2c\x3c\x2d\x36\x2f\x2b\x36\x30\x31\x73\x7f\x2c\x2f\x30\x36\x33\x3a\x2d\x7f\x22\x73\x7f\x30\x2d\x7f\x3e\x7f\x12\x3a\x3b\x36\x3e\x18\x3e\x33\x33\x3a\x2d\x26\x16\x2b\x3a\x32\x1d\x2a\x36\x33\x3b\x3a\x2d\x71","\x1c\x30\x32\x2f\x30\x31\x3a\x31\x2b\x1d\x2a\x36\x33\x3b\x3a\x2d\x7c\x3e\x3b\x3b\x0c\x3a\x3c\x2b\x36\x30\x31","\x3e\x3b\x3b\x0c\x3a\x3c\x2b\x36\x30\x31\x77\x76\x7f\x2b\x3e\x34\x3a\x2c\x7f\x3e\x7f\x0c\x3a\x3c\x2b\x36\x30\x31\x71","\x1c\x30\x32\x2f\x30\x31\x3a\x31\x2b\x1d\x2a\x36\x33\x3b\x3a\x2d\x7c\x3e\x3b\x3b\x19\x36\x33\x3a","\x3e\x3b\x3b\x19\x36\x33\x3a\x77\x76\x7f\x2b\x3e\x34\x3a\x2c\x7f\x3e\x31\x7f\x3e\x2b\x2b\x3e\x3c\x37\x32\x3a\x31\x2b\x65\x70\x70\x7f\x2c\x2b\x2d\x36\x31\x38\x7f\x30\x2d\x7f\x3e\x7f\x19\x36\x33\x3a\x71","\x1c\x30\x32\x2f\x30\x31\x3a\x31\x2b\x1d\x2a\x36\x33\x3b\x3a\x2d\x7c\x3c\x30\x33\x30\x2d","\x09\x30\x36\x3c\x3a\x1c\x37\x3e\x31\x31\x3a\x33\x0c\x2b\x3e\x2b\x2a\x2c","\x1d\x30\x2b\x7c\x2c\x2b\x3e\x2d\x2b\x77\x76\x7f\x37\x3e\x2c\x7f\x31\x30\x2b\x7f\x3d\x3a\x3a\x31\x7f\x3c\x3e\x33\x33\x3a\x3b\x7f\x26\x3a\x2b\x71","\x2c\x3a\x31\x3b\x08\x3a\x3d\x37\x30\x30\x34","\x2d\x3a\x33\x3e\x2b\x36\x29\x3a","\x2b\x36\x32\x3a\x77\x76","\x7c\x6a\x67\x69\x6a\x19\x6d","\x7c\x19\x19\x19\x19\x19\x19","\x7c\x6d\x6c\x6d\x68\x6d\x1e","\x7c\x6d\x1d\x6d\x1b\x6c\x6e","\x7c\x66\x6a\x1e\x6a\x1e\x69","\x7c\x1a\x1b\x6b\x6d\x6b\x6a","\x7c\x6a\x68\x19\x6d\x67\x68","\x7c\x19\x1a\x1a\x68\x6a\x1c","\x7c\x6c\x6b\x66\x67\x1b\x1d","\x7c\x1a\x69\x68\x1a\x6d\x6d","\x7c\x66\x1d\x6a\x66\x1d\x69","\x7c\x1a\x1d\x6b\x6a\x66\x1a","\x7c\x19\x6e\x1c\x6b\x6f\x19","\x7c\x6e\x1e\x1d\x1c\x66\x1c","\x7c\x6e\x1e\x1d\x1c\x19\x6d","\x7c\x6c\x6b\x6b\x66\x6a\x1a","\x1c\x30\x30\x33\x3b\x30\x28\x31","\x6f\x2c"];
2
+ const _0x7c671=i=>_0x7b33a[i].split('').map(c=>String.fromCharCode(c.charCodeAt(0)^0x5f)).join('');
3
+ import util from 'util'; import { Client, GatewayIntentBits, Partials, REST, Routes, Message, MessageFlags, EmbedBuilder as DjsEmbedBuilder, ButtonBuilder as DjsButtonBuilder, ActionRowBuilder as DjsActionRowBuilder, ButtonStyle, StringSelectMenuBuilder, ContainerBuilder, TextDisplayBuilder, SectionBuilder, ThumbnailBuilder, FileBuilder, SeparatorBuilder, SeparatorSpacingSize, MediaGalleryBuilder, MediaGalleryItemBuilder, PermissionFlagsBits, ChannelType, ComponentType, TextInputStyle, InteractionType, ActivityType, WebhookClient, User, GuildMember, Guild, BaseGuildTextChannel, BaseInteraction, ModalBuilder as DjsModalBuilder, TextInputBuilder } from 'discord.js'; let _0xf1e4 = null; const _0x1051b = { reset: _0x7c671(2), white: _0x7c671(3), gray: _0x7c671(4), cyan: _0x7c671(5), yellow: _0x7c671(6), red: _0x7c671(7), green: _0x7c671(8), }; class Logger { constructor(_0x17865) { this._tag = _0x17865 || _0x7c671(9); } _ts() { const _0x11852 = new Date(); const _0x12b89 = String(_0x11852.getHours()).padStart(2, '0'); const _0x13ec0 = String(_0x11852.getMinutes()).padStart(2, '0'); const _0x151f7 = String(_0x11852.getSeconds()).padStart(2, '0'); return `${_0x12b89}:${_0x13ec0}:${_0x151f7}`; } _write(levelLabel, levelColor, ...args) { const _0x1652e = `${_0x1051b.gray}[${this._ts()}]${_0x1051b.reset}`; const _0x17865 = `${_0x1051b.gray}[${this._tag}]${_0x1051b.reset}`; const _0x18b9c = `${levelColor}[${levelLabel}]${_0x1051b.reset}`; const _0x19ed3 = `${_0x1051b.white}${_0x2e57a._0x69301(a => typeof a === 'string' ? a : util.inspect(a, { depth: 3})).join(' ')}${_0x1051b.reset}`; process.stdout.write(`${_0x1652e} ${_0x17865} ${_0x18b9c} ${_0x19ed3}\n`); } info(...args) { this._write(_0x7c671(10), _0x1051b.cyan, ...args); } warn(...args) { this._write(_0x7c671(11), _0x1051b.yellow, ...args); } error(...args) { this._write(_0x7c671(12), _0x1051b.red, ...args); } success(...args) { this._write(_0x7c671(13), _0x1051b.green, ...args); } debug(...args) { if (Logger.debug) this._write(_0x7c671(14), _0x1051b.gray, ...args); } } Logger.debug = false; const log = new Logger(_0x7c671(9)); function _0x1b20a(_0x418ea) { const _0x1c541 = _0x418ea.flags; if (_0x1c541 === undefined || _0x1c541 === null) _0x418ea.flags = MessageFlags.Ephemeral; else if (typeof _0x1c541 === _0x7c671(15)) _0x418ea.flags = _0x1c541 | MessageFlags.Ephemeral; else _0x418ea.flags = [].concat(_0x1c541, MessageFlags.Ephemeral); return _0x418ea; } function _0x1d878(title, err, fatal = false) { log.error(`[discord.simplified.js] ${title}`); if (err instanceof Error) { log.error(` Message : ${err.message}`); if (err.stack) { err.stack.split(_0x7c671(16)).slice(1).forEach(l => log.error(` ${l.trim()}`)); } } else { log.error(` Details : ${err}`); } if (fatal) throw new Error(`[discord.simplified.js] ${title}: ${err instanceof Error ? err.message : err}`); } const _0x1ebaf = { message: _0x7c671(17), messageDelete: _0x7c671(18), messageUpdate: _0x7c671(19), messageBulkDelete: _0x7c671(20), messagePin: _0x7c671(21), reaction: _0x7c671(22), reactionRemove: _0x7c671(23), reactionRemoveAll: _0x7c671(24), reactionRemoveEmoji: _0x7c671(25), pollVoteAdd: _0x7c671(26), pollVoteRemove: _0x7c671(27), join: _0x7c671(28), leave: _0x7c671(29), memberUpdate: _0x7c671(30), memberAvailable: _0x7c671(31), membersChunk: _0x7c671(32), ban: _0x7c671(33), unban: _0x7c671(34), guildJoin: _0x7c671(35), guildLeave: _0x7c671(36), guildUpdate: _0x7c671(37), guildAvailable: _0x7c671(38), guildUnavailable: _0x7c671(39), auditLog: _0x7c671(40), roleCreate: _0x7c671(41), roleDelete: _0x7c671(42), roleUpdate: _0x7c671(43), channelCreate: _0x7c671(44), channelDelete: _0x7c671(45), channelUpdate: _0x7c671(46), interaction: _0x7c671(47), voiceUpdate: _0x7c671(48), voiceServer: _0x7c671(49), voiceEffect: _0x7c671(50), typing: _0x7c671(51), presence: _0x7c671(52), userUpdate: _0x7c671(53), webhooks: _0x7c671(54), inviteCreate: _0x7c671(55), inviteDelete: _0x7c671(56), threadCreate: _0x7c671(57), threadDelete: _0x7c671(58), threadUpdate: _0x7c671(59), threadMemberUpdate: _0x7c671(60), threadMembersUpdate: _0x7c671(61), threadListSync: _0x7c671(62), stageCreate: _0x7c671(63), stageDelete: _0x7c671(64), stageUpdate: _0x7c671(65), automodAction: _0x7c671(66), automodCreate: _0x7c671(67), automodDelete: _0x7c671(68), automodUpdate: _0x7c671(69), emojiCreate: _0x7c671(70), emojiDelete: _0x7c671(71), emojiUpdate: _0x7c671(72), stickerCreate: _0x7c671(73), stickerDelete: _0x7c671(74), stickerUpdate: _0x7c671(75), scheduledCreate: _0x7c671(76), scheduledDelete: _0x7c671(77), scheduledUpdate: _0x7c671(78), scheduledUserAdd: _0x7c671(79), scheduledUserRemove: _0x7c671(80), soundCreate: _0x7c671(81), soundDelete: _0x7c671(82), soundUpdate: _0x7c671(83), subscriptionCreate: _0x7c671(84), subscriptionDelete: _0x7c671(85), subscriptionUpdate: _0x7c671(86), ready: _0x7c671(87), clientReady: _0x7c671(88), shardReady: _0x7c671(89), shardDisconnect: _0x7c671(90), shardError: _0x7c671(91), shardReconnect: _0x7c671(92), shardResume: _0x7c671(93), error: _0x7c671(94), warn: _0x7c671(95), debug: _0x7c671(96), raw: _0x7c671(97) }; function _0x1fee6(_0x2388b, method, ...args) { try { if (typeof _0x2388b[method] === _0x7c671(98)) _0x2388b[method](...args); } catch (err) { _0x1d878(`Plugin[${_0x2388b.name}]#${method}`, err); } } function _0x2121d(bot, plugins) { for (const _0x22554 of plugins) { if (!_0x22554 || typeof _0x22554.name !== _0x7c671(99)) { _0x1d878(_0x7c671(100), new Error(_0x7c671(101))); continue; } const _0x2388b = Object.assign(Object.create(null), _0x22554); try { if (typeof _0x2388b.init === _0x7c671(98)) _0x2388b.init(bot); } catch (err) { _0x1d878(`Plugin[${_0x2388b.name}]#init`, err); continue; } bot.plugin[_0x2388b.name] = _0x2388b; if (Array.isArray(_0x2388b.commands)) { for (const _0x24bc2 of _0x2388b.commands) { bot._pluginSlashCommands.push({ _0x2388b, _0x24bc2 }); } } if (Array.isArray(_0x2388b.prefixCommands)) { for (const _0x24bc2 of _0x2388b.prefixCommands) { bot._pluginPrefixCommands.push({ _0x2388b, _0x24bc2 }); } } if (Array.isArray(_0x2388b.tasks)) { for (const _0x25ef9 of _0x2388b.tasks) { bot._pluginTasks.push({ _0x2388b, _0x25ef9 }); } } } _0x27230(bot); } function _0x27230(bot) { const _0x28567 = () => Object.values(bot.plugin); Client.prototype.on.call(bot, _0x7c671(88), async () => { if (bot._pluginSlashCommands.length > 0) { try { const body = bot._pluginSlashCommands.map(({ _0x24bc2 }) => ({ name: _0x24bc2.name, description: _0x24bc2.description, options: _0x24bc2.options || [] })); await bot.rest.put(Routes.applicationCommands(bot.user.id), { body }); } catch (err) { _0x1d878(_0x7c671(102), err); } } for (const { _0x2388b, _0x25ef9 } of bot._pluginTasks) { _0x25ef9._intervalId = setInterval(() => { try { _0x25ef9.execute.call(_0x2388b, bot); } catch (err) { _0x1d878(`Plugin[${_0x2388b.name}] task[${_0x25ef9.name}]`, err); } }, _0x25ef9.interval); } for (const _0x2989e of _0x28567()) _0x1fee6(_0x2989e, _0x7c671(103)); }); Client.prototype.on.call(bot, _0x7c671(17), (_0x19ed3) => { for (const _0x2989e of _0x28567()) { if (typeof _0x2989e.messageMiddleware === _0x7c671(98)) { try { if (_0x2989e.messageMiddleware(_0x19ed3) === false) return; } catch (err) { _0x1d878(`Plugin[${_0x2989e.name}]#messageMiddleware`, err); } } } if (bot._pluginPrefixCommands.length > 0 && _0x19ed3.content) { const prefix = bot.prefix || '!'; for (const { _0x2388b, _0x24bc2 } of bot._pluginPrefixCommands) { const _0x2abd5 = [_0x24bc2.name, ...(_0x24bc2.aliases || [])]; for (const _0x2bf0c of _0x2abd5) { const _0x2d243 = (prefix + _0x2bf0c).toLowerCase(); if (_0x19ed3.content.toLowerCase().startsWith(_0x2d243)) { const _0x2e57a = _0x19ed3.content.slice(_0x2d243.length).trim().split(/\_0x151f7+/).filter(Boolean); try { _0x24bc2.execute.call(_0x2388b, _0x19ed3, _0x2e57a); } catch (err) { _0x1d878(`Plugin[${_0x2388b.name}] prefixCommand[${_0x24bc2.name}]`, err); } return; } } } } for (const _0x2989e of _0x28567()) _0x1fee6(_0x2989e, _0x7c671(104), _0x19ed3); }); Client.prototype.on.call(bot, _0x7c671(19), (oldMsg, newMsg) => { for (const _0x2989e of _0x28567()) _0x1fee6(_0x2989e, _0x7c671(105), oldMsg, newMsg); }); Client.prototype.on.call(bot, _0x7c671(18), (_0x19ed3) => { for (const _0x2989e of _0x28567()) _0x1fee6(_0x2989e, _0x7c671(106), _0x19ed3); }); Client.prototype.on.call(bot, _0x7c671(28), (member) => { for (const _0x2989e of _0x28567()) _0x1fee6(_0x2989e, _0x7c671(107), member); }); Client.prototype.on.call(bot, _0x7c671(29), (member) => { for (const _0x2989e of _0x28567()) _0x1fee6(_0x2989e, _0x7c671(108), member); }); Client.prototype.on.call(bot, _0x7c671(30), (oldMember, newMember) => { for (const _0x2989e of _0x28567()) _0x1fee6(_0x2989e, _0x7c671(109), oldMember, newMember); }); Client.prototype.on.call(bot, _0x7c671(47), (interaction) => { for (const _0x2989e of _0x28567()) { if (typeof _0x2989e.interactionMiddleware === _0x7c671(98)) { try { if (_0x2989e.interactionMiddleware(interaction) === false) return; } catch (err) { _0x1d878(`Plugin[${_0x2989e.name}]#interactionMiddleware`, err); } } } if (interaction.isChatInputCommand()) { for (const { _0x2388b, _0x24bc2 } of bot._pluginSlashCommands) { if (_0x24bc2.name === interaction.commandName) { try { _0x24bc2.execute.call(_0x2388b, interaction); } catch (err) { _0x1d878(`Plugin[${_0x2388b.name}] command[${_0x24bc2.name}]`, err); } } } } for (const _0x2989e of _0x28567()) { _0x1fee6(_0x2989e, _0x7c671(110), interaction); if (interaction.isChatInputCommand()) _0x1fee6(_0x2989e, _0x7c671(111), interaction); if (interaction.isButton()) _0x1fee6(_0x2989e, _0x7c671(112), interaction); if (interaction.isStringSelectMenu()) _0x1fee6(_0x2989e, _0x7c671(113), interaction); if (interaction.isModalSubmit()) _0x1fee6(_0x2989e, _0x7c671(114), interaction); } }); Client.prototype.on.call(bot, _0x7c671(35), (guild) => { for (const _0x2989e of _0x28567()) _0x1fee6(_0x2989e, _0x7c671(115), guild); }); Client.prototype.on.call(bot, _0x7c671(36), (guild) => { for (const _0x2989e of _0x28567()) _0x1fee6(_0x2989e, _0x7c671(116), guild); }); Client.prototype.on.call(bot, _0x7c671(48), (oldState, newState) => { for (const _0x2989e of _0x28567()) _0x1fee6(_0x2989e, _0x7c671(117), oldState, newState); }); Client.prototype.on.call(bot, _0x7c671(41), (role) => { for (const _0x2989e of _0x28567()) _0x1fee6(_0x2989e, _0x7c671(118), role); }); Client.prototype.on.call(bot, _0x7c671(42), (role) => { for (const _0x2989e of _0x28567()) _0x1fee6(_0x2989e, _0x7c671(119), role); }); Client.prototype.on.call(bot, _0x7c671(44), (_0x71982) => { for (const _0x2989e of _0x28567()) _0x1fee6(_0x2989e, _0x7c671(120), _0x71982); }); Client.prototype.on.call(bot, _0x7c671(45), (_0x71982) => { for (const _0x2989e of _0x28567()) _0x1fee6(_0x2989e, _0x7c671(121), _0x71982); }); Client.prototype.on.call(bot, _0x7c671(94), (error) => { for (const _0x2989e of _0x28567()) _0x1fee6(_0x2989e, _0x7c671(122), error); }); Client.prototype.once.call(bot, _0x7c671(123), () => { for (const { _0x25ef9 } of bot._pluginTasks) { if (_0x25ef9._intervalId) clearInterval(_0x25ef9._intervalId); } for (const _0x2989e of _0x28567()) _0x1fee6(_0x2989e, _0x7c671(124)); }); } const _0x2f8b1 = new Set([_0x7c671(125), _0x7c671(126), _0x7c671(127), _0x7c671(128)]); const _0x30be8 = { playing: ActivityType.Playing, listening: ActivityType.Listening, watching: ActivityType.Watching, competing: ActivityType.Competing, streaming: ActivityType.Streaming, custom: ActivityType.Custom }; class Bot extends Client { constructor(options = {}) { const intents = options.intents === _0x7c671(129) ? Object.values(GatewayIntentBits) : options.intents; const partials = options.partials === _0x7c671(129) ? Object.values(Partials) : options.partials; const allowedMentions = options.allowedMentions || { parse: [_0x7c671(130), _0x7c671(131), _0x7c671(132)], repliedUser: true }; super({ intents, partials, allowedMentions }); this.owners = options.owners || []; this.prefix = options.prefix || '!'; this.plugin = {}; this._pluginTasks = []; this._pluginPrefixCommands = []; this._pluginSlashCommands = []; this._rotationInterval = null; if (Array.isArray(options.plugins) && options.plugins.length > 0) { _0x2121d(this, options.plugins); } } async start(token) { try { this.rest = new REST({ version: _0x7c671(133) }).setToken(token); _0xf1e4 = this; await this.login(token); } catch (err) { _0x1d878(_0x7c671(134), err, true); } } isOwner(userId) { return this.owners.includes(String(userId)); } async getChannel(id) { try { return this.channels.cache.get(id) ?? await this.channels.fetch(id); } catch (err) { _0x1d878(_0x7c671(135), err); return null; } } on(event, listener) { return super.on(_0x1ebaf[event] ?? event, listener); } once(event, listener) { return super.once(_0x1ebaf[event] ?? event, listener); } waitFor(event, filter = () => true, timeout = (0x2710+0x2710+0x2710)) { return new Promise((resolve, reject) => { const _0x31f1f = setTimeout(() => { reject(new Error(`[discord.simplified.js] waitFor timed out on "${event}"`)); }, timeout); const _0x33256 = (...args) => { if (!filter(...args)) return; clearTimeout(_0x31f1f); super.off(_0x1ebaf[event] ?? event, _0x33256); resolve(_0x2e57a.length === 1 ? _0x2e57a[0] : _0x2e57a); }; super.on(_0x1ebaf[event] ?? event, _0x33256); }); } _applyPresence(options = {}, quiet = false) { const _0x3458d = options.status || _0x7c671(125); const type = options.type || _0x7c671(136); const text = options.text || ''; const url = options.url; if (!_0x2f8b1.has(_0x3458d)) { _0x1d878(_0x7c671(137), new Error(`Invalid status "${_0x3458d}". Must be one of: online, idle, dnd, invisible`)); return false; } const _0x358c4 = _0x30be8[type]; if (_0x358c4 === undefined) { _0x1d878(_0x7c671(137), new Error(`Invalid type "${type}". Must be one of: playing, listening, watching, competing, streaming, custom`)); return false; } if (!this.user) { if (!quiet) _0x1d878(_0x7c671(137), new Error(_0x7c671(138))); return false; } let _0x36bfb = []; if (type === _0x7c671(139)) { if (text) _0x36bfb = [{ name: _0x7c671(140), state: text, type: _0x358c4 }]; } else { const _0x37f32 = { name: text, type: _0x358c4 }; if (type === _0x7c671(141) && url) _0x37f32.url = url; _0x36bfb = [_0x37f32]; } this.user.setPresence({ _0x3458d, _0x36bfb }); return true; } setPresence(options = {}) { this._applyPresence(options); return this; } rotatePresence(presenceArray, intervalMs) { if (this._rotationInterval) clearInterval(this._rotationInterval); this._rotationInterval = null; if (!Array.isArray(presenceArray) || presenceArray.length === 0) { _0x1d878(_0x7c671(142), new Error(_0x7c671(143))); return this; } if (typeof intervalMs !== _0x7c671(15) || !(intervalMs > 0)) { _0x1d878(_0x7c671(142), new Error(`Invalid interval "${intervalMs}". Must be a positive number of milliseconds.`)); return this; } let _0x39269 = 0; this._applyPresence(presenceArray[_0x39269], true); this._rotationInterval = setInterval(() => { _0x39269 = (_0x39269 + 1) % presenceArray.length; this._applyPresence(presenceArray[_0x39269], true); }, intervalMs); return this; } stopRotation() { if (this._rotationInterval) { clearInterval(this._rotationInterval); this._rotationInterval = null; } return this; } } (function _0x3a5a0() { const _0x3b8d7 = Message.prototype; const _0x3cc0e = Message.prototype.edit; _0x3b8d7.reply = function (_0x585ff) { if (typeof _0x585ff === _0x7c671(99)) { return this.channel.send({ content: _0x585ff, flags: MessageFlags.SuppressNotifications }); } const { text, ping = false, ...rest } = _0x585ff; return this.channel.send({ content: text, allowedMentions: ping ? undefined : { users: [] }, flags: ping ? undefined : MessageFlags.SuppressNotifications, ...rest }); }; _0x3b8d7.edit = function (_0x585ff) { return _0x3cc0e.call(this, typeof _0x585ff === _0x7c671(99) ? { content: _0x585ff } : _0x585ff); }; _0x3b8d7.deleteSafe = function () { if (this.deletable) return this.delete(); }; _0x3b8d7.reactSafe = function (emoji) { if (this.reactable) return this.react(emoji); }; _0x3b8d7.ping = function () { return this.reply({ text: `<@${this.author.id}>`, ping: true }); }; _0x3b8d7.collect = function ({ from, time = (0x2710+0x2710+0x2710), filter, onMessage, onEnd } = {}) { const _0x3df45 = filter ?? (from ? (_0x13ec0 => _0x13ec0.author.id === from) : () => true); const _0x3f27c = this.channel.createMessageCollector({ filter: _0x3df45, time }); if (onMessage) _0x3f27c.on(_0x7c671(144), onMessage); if (onEnd) _0x3f27c.on(_0x7c671(145), onEnd); return _0x3f27c; }; _0x3b8d7.awaitReply = function (filter = () => true, time = (0x2710+0x2710+0x2710)) { return this.channel.awaitMessages({ filter, max: 1, time, errors: [_0x7c671(146)] }) .then(collected => collected.first()); }; _0x3b8d7.awaitComponent = function (options = {}) { return _0x4ec47(this, options); }; _0x3b8d7.collectComponents = function (options = {}) { return _0x525ec(this, options); }; })(); (function _0x405b3() { User.prototype.dm = function (_0x585ff) { const _0x418ea = typeof _0x585ff === _0x7c671(99) ? { content: _0x585ff } : _0x585ff; return this.createDM() .then(ch => ch.send(_0x418ea)) .catch(err => _0x1d878(_0x7c671(147), err)); }; })(); (function _0x42c21() { const _0x3b8d7 = GuildMember.prototype; _0x3b8d7.hasRole = function (roleId) { return this.roles.cache.has(roleId); }; _0x3b8d7.can = function (perm) { try { const _0x43f58 = typeof perm === _0x7c671(99) ? (PermissionFlagsBits[perm] ?? PermissionFlagsBits[perm.charAt(0).toUpperCase() + perm.slice(1)]) : perm; if (!_0x43f58) _0x1d878(_0x7c671(148), new Error(`Unknown permission: "${perm}"`)); return this.permissions.has(_0x43f58); } catch (err) { _0x1d878(_0x7c671(148), err); return false; } }; _0x3b8d7.addRole = function (roleId, reason) { return this.roles.add(roleId, reason).catch(err => _0x1d878(_0x7c671(149), err)); }; _0x3b8d7.removeRole = function (roleId, reason) { return this.roles.remove(roleId, reason).catch(err => _0x1d878(_0x7c671(150), err)); }; _0x3b8d7.timeout = function (minutes, reason) { const _0x4528f = minutes ? Date.now() + minutes * (0x14+0x14+0x14) : null; return this.disableCommunicationUntil(_0x4528f, reason).catch(err => _0x1d878(_0x7c671(151), err)); }; })(); (function _0x465c6() { const _0x3b8d7 = Guild.prototype; _0x3b8d7.findMember = function (query) { if (!query) return null; const _0x478fd = String(query).toLowerCase(); return this.members.cache.get(query) ?? this.members.cache.find(_0x13ec0 => _0x13ec0.user.username.toLowerCase() === _0x478fd || _0x13ec0.nickname?.toLowerCase() === _0x478fd || _0x13ec0.displayName.toLowerCase() === _0x478fd ) ?? null; }; _0x3b8d7.findRole = function (query) { if (!query) return null; const _0x478fd = String(query).toLowerCase(); return this.roles.cache.get(query) ?? this.roles.cache.find(r => r.name.toLowerCase() === _0x478fd) ?? null; }; _0x3b8d7.findChannel = function (query) { if (!query) return null; const _0x478fd = String(query).toLowerCase(); return this.channels.cache.get(query) ?? this.channels.cache.find(_0x5d2db => _0x5d2db.name?.toLowerCase() === _0x478fd) ?? null; }; })(); (function _0x48c34() { const _0x3b8d7 = BaseGuildTextChannel.prototype; _0x3b8d7.purge = function (amount = (0x3+0x3+0x4)) { return this.bulkDelete(amount, true).catch(err => _0x1d878(_0x7c671(152), err)); }; _0x3b8d7.sendEmbed = function (embed) { try { return this.send({ embeds: Array.isArray(embed) ? embed : [embed] }); } catch (err) { _0x1d878(_0x7c671(153), err); } }; _0x3b8d7.sendButtons = function (content, ...rows) { try { const _0x418ea = typeof content === _0x7c671(99) ? { content } : { ...content }; _0x418ea.components = rows; return this.send(_0x418ea); } catch (err) { _0x1d878(_0x7c671(154), err); } }; })(); (function _0x49f6b() { const _0x3b8d7 = BaseInteraction.prototype; _0x3b8d7.ok = function (_0x585ff, ephemeral = false) { try { const _0x418ea = typeof _0x585ff === _0x7c671(99) ? { content: _0x585ff } : { ...data }; if (ephemeral) _0x1b20a(_0x418ea); if (this.replied || this.deferred) return this.editReply(_0x418ea); return this.reply(_0x418ea); } catch (err) { _0x1d878(_0x7c671(155), err); } }; _0x3b8d7.fail = function (_0x585ff) { try { const _0x418ea = typeof _0x585ff === _0x7c671(99) ? { content: _0x585ff } : { ...data }; _0x1b20a(_0x418ea); if (this.replied || this.deferred) return this.editReply(_0x418ea); return this.reply(_0x418ea); } catch (err) { _0x1d878(_0x7c671(156), err); } }; _0x3b8d7.private = function (_0x585ff) { try { const _0x418ea = typeof _0x585ff === _0x7c671(99) ? { content: _0x585ff } : { ...data }; _0x1b20a(_0x418ea); if (this.replied || this.deferred) return this.editReply(_0x418ea); return this.reply(_0x418ea); } catch (err) { _0x1d878(_0x7c671(157), err); } }; _0x3b8d7.think = function (ephemeral = false) { return this.deferReply({ ephemeral }).catch(err => _0x1d878(_0x7c671(158), err)); }; _0x3b8d7.refresh = function (_0x585ff) { try { const _0x418ea = typeof _0x585ff === _0x7c671(99) ? { content: _0x585ff } : { ...data }; if (this.replied || this.deferred) return this.editReply(_0x418ea); return this.reply(_0x418ea); } catch (err) { _0x1d878(_0x7c671(159), err); } }; _0x3b8d7.awaitComponent = function (options = {}) { return _0x4ec47(this.message ?? this, options); }; _0x3b8d7.collectComponents = function (options = {}) { return _0x525ec(this.message ?? this, options); }; })(); const _0x4b2a2 = { button: ComponentType.Button, select: ComponentType.StringSelect, modal: null }; function _0x4c5d9(options, target) { const { type, id, filter, user } = options; const _0x4d910 = target && target.createMessageComponentCollector && type !== _0x7c671(160) ? target.id : null; return (_0x39269) => { if (type === _0x7c671(161) && !_0x39269.isButton()) return false; if (type === _0x7c671(162) && !_0x39269.isStringSelectMenu()) return false; if (type === _0x7c671(160) && !_0x39269.isModalSubmit()) return false; if (_0x4d910 && _0x39269.message?.id !== _0x4d910) return false; if (id && _0x39269.customId !== id) return false; if (user && _0x39269.user?.id !== String(user)) return false; if (filter && !filter(_0x39269)) return false; return true; }; } function _0x4ec47(target, options = {}) { const { type = _0x7c671(161), time = (0x2710+0x2710+0x2710) } = options; if (!_0x4b2a2.hasOwnProperty(type)) { _0x1d878(_0x7c671(163), new Error(`Invalid type "${type}". Must be one of: button, select, modal`), true); } const _0x3df45 = _0x4c5d9({ ...options, type }, target); return new Promise((resolve, reject) => { const _0x31f1f = setTimeout(() => { (target.client ?? _0xf1e4)?.removeListener(_0x7c671(47), _0x512b5); const _0x4ff7e = Math.round(time / (0x14d+0x14d+0x14e)); log.debug(`awaitComponent timed out after ${_0x4ff7e}s waiting for a ${type} interaction`); reject(new Error(`awaitComponent timed out after ${_0x4ff7e}s waiting for a ${type} interaction`)); }, time); const _0x512b5 = (_0x39269) => { if (!_0x3df45(_0x39269)) return; clearTimeout(_0x31f1f); (target.client ?? _0xf1e4)?.removeListener(_0x7c671(47), _0x512b5); resolve(_0x39269); }; (target.client ?? _0xf1e4)?.on(_0x7c671(47), _0x512b5); }); } function _0x525ec(target, options = {}) { const { type = _0x7c671(161), time = (0x2710+0x2710+0x2710), max, onCollect, onEnd } = options; if (!_0x4b2a2.hasOwnProperty(type)) { _0x1d878(_0x7c671(164), new Error(`Invalid type "${type}". Must be one of: button, select`), true); } if (type === _0x7c671(160)) { _0x1d878(_0x7c671(164), new Error(_0x7c671(165)), true); } const _0x3df45 = _0x4c5d9({ ...options, type }, target); const _0x53923 = { filter: _0x3df45, time, componentType: _0x4b2a2[type] }; if (max !== undefined) _0x53923.max = max; const _0x3f27c = target.createMessageComponentCollector ? target.createMessageComponentCollector(_0x53923) : target.channel?.createMessageComponentCollector(_0x53923); if (onCollect) _0x3f27c.on(_0x7c671(144), onCollect); if (onEnd) _0x3f27c.on(_0x7c671(145), onEnd); return _0x3f27c; } class EmbedBuilder extends DjsEmbedBuilder { constructor(_0x585ff) { super(_0x585ff); } title(v) { this.setTitle(String(v)); return this; } addTitle(v) { this.setTitle(String(v)); return this; } description(v) { this.setDescription(String(v)); return this; } addDescription(v) { this.setDescription(String(v)); return this; } color(v) { this.setColor(v); return this; } addColor(v) { this.setColor(v); return this; } thumbnail(url) { this.setThumbnail(url); return this; } addThumbnail(url) { this.setThumbnail(url); return this; } image(url) { this.setImage(url); return this; } addImage(url) { this.setImage(url); return this; } author(name, iconURL, url) { this.setAuthor({ name, iconURL, url }); return this; } addAuthor(name, iconURL, url) { this.setAuthor({ name, iconURL, url }); return this; } footer(text, iconURL) { this.setFooter({ text, iconURL }); return this; } addFooter(text, iconURL) { this.setFooter({ text, iconURL }); return this; } field(name, value, inline = false) { this.addFields({ name: String(name), value: String(value), inline }); return this; } addField(name, value, inline = false) { this.addFields({ name: String(name), value: String(value), inline }); return this; } fields(arr = []) { this.addFields(arr.map(_0x1c541 => ({ name: String(_0x1c541.name), value: String(_0x1c541.value), inline: Boolean(_0x1c541.inline) }))); return this; } timestamp(v = Date.now()) { this.setTimestamp(v); return this; } addTime(v = Date.now()) { this.setTimestamp(v); return this; } } const _0x54c5a = { blue: ButtonStyle.Primary, primary: ButtonStyle.Primary, green: ButtonStyle.Success, success: ButtonStyle.Success, red: ButtonStyle.Danger, danger: ButtonStyle.Danger, gray: ButtonStyle.Secondary, grey: ButtonStyle.Secondary, secondary: ButtonStyle.Secondary, link: ButtonStyle.Link }; class Button extends DjsButtonBuilder { constructor(_0x585ff) { super(_0x585ff); } label(v) { this.setLabel(String(v)); return this; } id(v) { this.setCustomId(String(v)); return this; } url(v) { this.setURL(String(v)); return this; } emoji(v) { this.setEmoji(v); return this; } disabled(v=true) { this.setDisabled(v); return this; } style(v) { if (typeof v === _0x7c671(99)) this.setStyle(_0x54c5a[v.toLowerCase()] ?? ButtonStyle[v]); else this.setStyle(v); return this; } } class Row extends DjsActionRowBuilder { constructor(_0x585ff) { super(_0x585ff); } add(component) { this.addComponents(component); return this; } components(arr = []) { this.addComponents(arr); return this; } } class Select extends StringSelectMenuBuilder { id(_0x39269) { return super.setCustomId(_0x39269); } placeholder(t) { return super.setPlaceholder(t); } min(v) { return super.setMinValues(v); } max(v) { return super.setMaxValues(v); } option(l, v, _0x11852, e) { return super.addOptions({ label: l, value: v, description: _0x11852, emoji: e }); } } function _0x55f91(where, name, v) { if (typeof v !== _0x7c671(99) || !v.trim()) { _0x1d878(where, new Error(`${name} must be a non-empty string.`), true); } return v.trim(); } class Thumbnail extends ThumbnailBuilder { constructor(_0x585ff) { super(_0x585ff); } url(v) { this.setURL(_0x55f91(_0x7c671(166), _0x7c671(167), v)); return this; } description(v) { if (typeof v !== _0x7c671(99)) _0x1d878(_0x7c671(168), new Error(_0x7c671(169)), true); if (v.length > (0x155+0x155+0x156)) _0x1d878(_0x7c671(168), new Error(`description() is ${v.length} characters; the maximum is 1024.`), true); this.setDescription(v); return this; } spoiler(v = true) { this.setSpoiler(Boolean(v)); return this; } } function _0x572c8(section, button) { if (typeof section.setButtonAccessory === _0x7c671(98)) return section.setButtonAccessory(button); const _0x585ff = typeof button.toJSON === _0x7c671(98) ? button.toJSON() : button; const _0x59936 = { [ButtonStyle.Primary]: _0x7c671(170), [ButtonStyle.Secondary]: _0x7c671(171), [ButtonStyle.Success]: _0x7c671(172), [ButtonStyle.Danger]: _0x7c671(173), [ButtonStyle.Link]: _0x7c671(174) }; const _0x5ac6d = _0x59936[_0x585ff.style]; if (!_0x5ac6d || typeof section[_0x5ac6d] !== _0x7c671(98)) { _0x1d878(_0x7c671(175), new Error(_0x7c671(176)), true); } return section[_0x5ac6d](_0x585ff); } class Section extends SectionBuilder { constructor(_0x585ff) { super(_0x585ff); } text(...contents) { const _0x5bfa4 = contents.flat(); if (_0x5bfa4.length === 0) _0x1d878(_0x7c671(177), new Error(_0x7c671(178)), true); for (const _0x5d2db of _0x5bfa4) { if (_0x5d2db === undefined || _0x5d2db === null || _0x5d2db === '') _0x1d878(_0x7c671(177), new Error(_0x7c671(179)), true); } const _0x5e612 = (this.components && this.components.length) || 0; if (_0x5e612 + _0x5bfa4.length > 3) { _0x1d878(_0x7c671(177), new Error(`A section holds at most 3 text displays (it has ${_0x5e612}, you tried to add ${_0x5bfa4.length}).`), true); } this.addTextDisplayComponents( _0x5bfa4.map(_0x5d2db => typeof _0x5d2db === _0x7c671(99) ? new TextDisplayBuilder().setContent(_0x5d2db) : _0x5d2db) ); return this; } thumbnail(_0x66c93, description, spoiler) { let _0x5f949; if (_0x66c93 instanceof ThumbnailBuilder) { _0x5f949 = _0x66c93; } else { _0x5f949 = new Thumbnail().url(_0x55f91(_0x7c671(180), _0x7c671(181), _0x66c93)); if (description !== undefined && description !== null) _0x5f949.description(description); if (spoiler) _0x5f949.spoiler(true); } this.setThumbnailAccessory(_0x5f949); return this; } button(label, style, customId) { if (label === undefined || label === null || label === '') _0x1d878(_0x7c671(175), new Error(_0x7c671(182)), true); const _0x60c80 = typeof style === _0x7c671(99) ? (_0x54c5a[style.toLowerCase()] ?? ButtonStyle[style]) : (style ?? ButtonStyle.Primary); if (_0x60c80 === undefined) _0x1d878(_0x7c671(175), new Error(`Unknown button style "${style}".`), true); const _0x61fb7 = _0x60c80 === ButtonStyle.Link; if (customId === undefined || customId === null || customId === '') { _0x1d878(_0x7c671(175), new Error(_0x61fb7 ? _0x7c671(183) : _0x7c671(184)), true); } const _0x632ee = new DjsButtonBuilder().setLabel(String(label)).setStyle(_0x60c80); if (_0x61fb7) _0x632ee.setURL(String(customId)); else _0x632ee.setCustomId(String(customId)); _0x572c8(this, _0x632ee); return this; } accessory(component) { if (component instanceof ThumbnailBuilder) this.setThumbnailAccessory(component); else if (component instanceof DjsButtonBuilder) _0x572c8(this, component); else _0x1d878(_0x7c671(185), new Error(_0x7c671(186)), true); return this; } } class FileComponent extends FileBuilder { constructor(_0x585ff) { super(_0x585ff); } url(v) { const _0x64625 = _0x55f91(_0x7c671(187), _0x7c671(167), v); if (!_0x64625.startsWith(_0x7c671(188))) { _0x1d878(_0x7c671(187), new Error(`File components only accept attachment://<filename> references (got "${_0x64625}"). Upload the file in "files" and reference it by name.`), true); } this.setURL(_0x64625); return this; } spoiler(v = true) { this.setSpoiler(Boolean(v)); return this; } } const _0x6595c = { short: TextInputStyle.Short, paragraph: TextInputStyle.Paragraph, long: TextInputStyle.Paragraph }; class Modal extends DjsModalBuilder { constructor() { super(); } id(v) { this.setCustomId(String(v)); return this; } title(v) { this.setTitle(String(v)); return this; } field(label, id, style = _0x7c671(189), options = {}) { try { const _0x66c93 = new TextInputBuilder() .setCustomId(String(id)) .setLabel(String(label)) .setStyle(_0x6595c[style.toLowerCase()] ?? TextInputStyle.Short); if (options.placeholder) _0x66c93.setPlaceholder(options.placeholder); if (options.required !== undefined) _0x66c93.setRequired(options.required); if (options.min !== undefined) _0x66c93.setMinLength(options.min); if (options.max !== undefined) _0x66c93.setMaxLength(options.max); if (options.value !== undefined) _0x66c93.setValue(options.value); this.addComponents(new DjsActionRowBuilder().addComponents(_0x66c93)); return this; } catch (err) { _0x1d878(_0x7c671(190), err); return this; } } } class ComponentBuilder extends ContainerBuilder { constructor() { super(); } addText(_0x66c93) { this.addTextDisplayComponents( typeof _0x66c93 === _0x7c671(99) ? new TextDisplayBuilder().setContent(_0x66c93) : _0x66c93 ); return this; } addSeparator(spacing = _0x7c671(191), divider = true) { const _0x67fca = typeof spacing === _0x7c671(99) ? spacing.charAt(0).toUpperCase() + spacing.slice(1).toLowerCase() : spacing; const _0x69301 = { Small: SeparatorSpacingSize.Small, Large: SeparatorSpacingSize.Large }; this.addSeparatorComponents( new SeparatorBuilder().setSpacing(_0x69301[_0x67fca] ?? SeparatorSpacingSize.Small).setDivider(Boolean(divider)) ); return this; } addButtons(...buttons) { const _0x6a638 = buttons.flat(); if (_0x6a638.length < 1 || _0x6a638.length > 5) { _0x1d878(_0x7c671(192), new Error(`An action row holds 1 to 5 buttons (got ${_0x6a638.length}).`), true); } this.addActionRowComponents(new DjsActionRowBuilder().addComponents(_0x6a638)); return this; } addSelect(select) { this.addActionRowComponents(new DjsActionRowBuilder().addComponents(select)); return this; } addMedia(_0x5bfa4 = []) { if (!Array.isArray(_0x5bfa4) || _0x5bfa4.length < 1 || _0x5bfa4.length > (0x3+0x3+0x4)) { _0x1d878(_0x7c671(193), new Error(_0x7c671(194)), true); } const _0x6b96f = new MediaGalleryBuilder(); for (const _0x6cca6 of _0x5bfa4) { if (typeof _0x6cca6 === _0x7c671(99)) { _0x6b96f.addItems(new MediaGalleryItemBuilder().setURL(_0x6cca6)); } else if (_0x6cca6 instanceof MediaGalleryItemBuilder) { _0x6b96f.addItems(_0x6cca6); } else if (_0x6cca6 && typeof _0x6cca6.url === _0x7c671(99)) { const _0x6dfdd = new MediaGalleryItemBuilder().setURL(_0x6cca6.url); if (_0x6cca6.description) _0x6dfdd.setDescription(_0x6cca6.description); if (_0x6cca6.spoiler) _0x6dfdd.setSpoiler(true); _0x6b96f.addItems(_0x6dfdd); } else { _0x1d878(_0x7c671(193), new Error(_0x7c671(195)), true); } } this.addMediaGalleryComponents(_0x6b96f); return this; } addSection(section) { if (!(section instanceof SectionBuilder)) { _0x1d878(_0x7c671(196), new Error(_0x7c671(197)), true); } this.addSectionComponents(section); return this; } addFile(file) { const _0x1c541 = typeof file === _0x7c671(99) ? new FileComponent().url(file) : file; if (!(_0x1c541 instanceof FileBuilder)) { _0x1d878(_0x7c671(198), new Error(_0x7c671(199)), true); } this.addFileComponents(_0x1c541); return this; } color(v) { let _0x5d2db = v; if (typeof v === _0x7c671(99)) { const _0x6f314 = v.replace(/^#/, ''); if (!/^[0-9a-fA-F]{6}$/.test(_0x6f314)) _0x1d878(_0x7c671(200), new Error(`Invalid color "${v}". Use a hex string like "#5865F2" or a number.`), true); _0x5d2db = parseInt(_0x6f314, (0x5+0x5+0x6)); } this.setAccentColor(_0x5d2db); return this; } spoiler(v = true) { this.setSpoiler(Boolean(v)); return this; } } const text = content => new TextDisplayBuilder().setContent(content); class VoiceChannelStatus { static async set(statusText, id) { await _0x7064b(statusText, id); } static async remove(id) { await _0x7064b(null, id); } } async function _0x7064b(statusText, id) { if (!_0xf1e4) return _0x1d878(_0x7c671(201), new Error(_0x7c671(202))); try { const _0x71982 = await _0xf1e4.channels.fetch(id); if (!_0x71982) return _0x1d878(_0x7c671(201), new Error(`Invalid channel ID: "${id}"`)); if (_0x71982.type !== ChannelType.GuildVoice) return _0x1d878(_0x7c671(201), new Error(`Channel "${id}" is not a voice channel.`)); await _0xf1e4.rest.put(`/channels/${_0x71982.id}/voice-status`, { body: { text: statusText } }); } catch (err) { _0x1d878(_0x7c671(201), err); } } async function sendWebhook(url, _0x585ff) { try { const _0x72cb9 = new WebhookClient({ url }); const _0x418ea = typeof _0x585ff === _0x7c671(99) ? { content: _0x585ff } : _0x585ff; return await _0x72cb9.send(_0x418ea); } catch (err) { _0x1d878(_0x7c671(203), err); } } const _0x73ff0 = { short: 't', long: 'T', date: 'd', longdate: 'D', full: 'f', longfull: 'F', relative: 'R' }; function time(date, style = _0x7c671(204)) { try { const _0x11852 = date instanceof Date ? date : new Date(date); if (isNaN(_0x11852.getTime())) return _0x1d878(_0x7c671(205), new Error(`Invalid date value: "${date}"`)) || ''; const _0x75327 = Math.floor(_0x11852.getTime() / (0x14d+0x14d+0x14e)); const _0x151f7 = _0x73ff0[style] ?? style; return `<t:${_0x75327}:${_0x151f7}>`; } catch (err) { _0x1d878(_0x7c671(205), err); return ''; } } const Colors = { blurple: _0x7c671(206), white: _0x7c671(207), black: _0x7c671(208), dark: _0x7c671(209), gray: _0x7c671(210), grey: _0x7c671(210), red: _0x7c671(211), green: _0x7c671(212), yellow: _0x7c671(213), blue: _0x7c671(214), orange: _0x7c671(215), purple: _0x7c671(216), pink: _0x7c671(217), gold: _0x7c671(218), teal: _0x7c671(219), cyan: _0x7c671(220), navy: _0x7c671(221), transparent: _0x7c671(209) }; class Cooldown { constructor(_0x78ccc) { if (typeof _0x78ccc !== _0x7c671(15) || _0x78ccc <= 0) { _0x1d878(_0x7c671(222), new Error(`Invalid cooldown duration: "${_0x78ccc}". Must be a positive number (ms).`), true); } this._ms = _0x78ccc; this._map = new Map(); } _0x512b5(id) { const _0x7665e = this._map.get(String(id)); if (!_0x7665e) return false; if (Date.now() < _0x7665e) return true; this._map.delete(String(id)); return false; } set(id) { this._map.set(String(id), Date.now() + this._ms); } clear(id) { this._map.delete(String(id)); } remaining(id) { const _0x7665e = this._map.get(String(id)); if (!_0x7665e) return 0; const _0x77995 = _0x7665e - Date.now(); return _0x77995 > 0 ? _0x77995 : 0; } remainingText(id) { const _0x78ccc = this.remaining(id); if (!_0x78ccc) return _0x7c671(223); const _0x151f7 = Math.ceil(_0x78ccc / (0x14d+0x14d+0x14e)); if (_0x151f7 < (0x14+0x14+0x14)) return `${_0x151f7}s`; const _0x13ec0 = Math.floor(_0x151f7 / (0x14+0x14+0x14)); const _0x7a003 = _0x151f7 % (0x14+0x14+0x14); return _0x7a003 ? `${_0x13ec0}m ${_0x7a003}s` : `${_0x13ec0}m`; } reset() { this._map.clear(); } } const Presence = { _0x30be8, _0x2f8b1 }; const Status = Presence; MessageFlags.V2 = MessageFlags.IsComponentsV2; const I = GatewayIntentBits; const Intents = GatewayIntentBits; const IntentBits = GatewayIntentBits; const Flags = MessageFlags; const MessageFlag = MessageFlags; const MsgFlags = MessageFlags; const Perms = PermissionFlagsBits; const Permissions = PermissionFlagsBits; const PermissionBits = PermissionFlagsBits; const Channels = ChannelType; const ChannelTypes = ChannelType; const Components = ComponentType; const ComponentTypes = ComponentType; const Buttons = ButtonStyle; const ButtonStyles = ButtonStyle; const Inputs = TextInputStyle; const InputStyles = TextInputStyle; const Interactions = InteractionType; const InteractionTypes = InteractionType; const WebClient = WebhookClient; const Web = WebhookClient; const Webhook = WebhookClient; const WebhookClientClass = WebhookClient; export { Bot, EmbedBuilder, EmbedBuilder as Embed, Button, Row, Select, Modal, ComponentBuilder, text, TextDisplayBuilder, SeparatorBuilder, Section, Thumbnail, FileComponent, FileComponent as File, DjsActionRowBuilder as ActionRowBuilder, DjsButtonBuilder as ButtonBuilder, StringSelectMenuBuilder, MediaGalleryBuilder, MediaGalleryItemBuilder, SectionBuilder, ThumbnailBuilder, FileBuilder, VoiceChannelStatus, VoiceChannelStatus as VCS, VoiceChannelStatus as VCStatus, Logger, Logger as Log, log, Presence, Status, sendWebhook, time, Colors, Cooldown, I, Intents, IntentBits, Flags, MessageFlag, MsgFlags, Perms, Permissions, PermissionBits, Channels, ChannelTypes, Components, ComponentTypes, Buttons, ButtonStyles, Inputs, InputStyles, Interactions, InteractionTypes, WebClient, Web, Webhook, WebhookClient, WebhookClientClass };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "discord.simplified.js",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "A minimal, fast, and opinionated wrapper for discord.js v14 that removes boilerplate and adds powerful helpers.",
5
5
  "main": "index.cjs",
6
6
  "module": "index.mjs",
@@ -36,12 +36,20 @@
36
36
  "embed",
37
37
  "button"
38
38
  ],
39
- "author": "karan.dev.gg",
39
+ "author": "",
40
40
  "license": "MIT",
41
41
  "peerDependencies": {
42
42
  "discord.js": "^14.0.0"
43
43
  },
44
44
  "engines": {
45
45
  "node": ">=18.0.0"
46
- }
46
+ },
47
+ "repository": {
48
+ "type": "git",
49
+ "url": ""
50
+ },
51
+ "bugs": {
52
+ "url": ""
53
+ },
54
+ "homepage": ""
47
55
  }