Updated buttons and etc to components folder
This commit is contained in:
@@ -12,7 +12,7 @@ export default function loadAutocompleteEvents(client: Client, ft: FileType) {
|
|||||||
__dirname,
|
__dirname,
|
||||||
"..",
|
"..",
|
||||||
"..",
|
"..",
|
||||||
"events",
|
"components",
|
||||||
"autocomplete",
|
"autocomplete",
|
||||||
)
|
)
|
||||||
const autocompleteFiles = fs
|
const autocompleteFiles = fs
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import { FileType } from "../../typings"
|
|||||||
const embedColor = Number(color.replace("#", "0x"))
|
const embedColor = Number(color.replace("#", "0x"))
|
||||||
|
|
||||||
export default function loadButtonEvents(client: Client, ft: FileType) {
|
export default function loadButtonEvents(client: Client, ft: FileType) {
|
||||||
const btnPath = path.join(__dirname, "..", "..", "events", "buttons")
|
const btnPath = path.join(__dirname, "..", "..", "components", "buttons")
|
||||||
const btnFiles = fs.readdirSync(btnPath).filter(file => file.endsWith(ft))
|
const btnFiles = fs.readdirSync(btnPath).filter(file => file.endsWith(ft))
|
||||||
|
|
||||||
for (const file of btnFiles) {
|
for (const file of btnFiles) {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import { FileType } from "../../typings"
|
|||||||
const embedColor = Number(color.replace("#", "0x"))
|
const embedColor = Number(color.replace("#", "0x"))
|
||||||
|
|
||||||
export default function loadModalEvents(client: Client, ft: FileType) {
|
export default function loadModalEvents(client: Client, ft: FileType) {
|
||||||
const modalPath = path.join(__dirname, "..", "..", "events", "modals")
|
const modalPath = path.join(__dirname, "..", "..", "components", "modals")
|
||||||
const modalFiles = fs
|
const modalFiles = fs
|
||||||
.readdirSync(modalPath)
|
.readdirSync(modalPath)
|
||||||
.filter(file => file.endsWith(ft))
|
.filter(file => file.endsWith(ft))
|
||||||
|
|||||||
Reference in New Issue
Block a user