BREAKING: changed all ids to "opendiscord:"
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import {opendiscord, api, utilities} from "../../index"
|
||||
|
||||
export const loadAllBlacklistedUsers = async () => {
|
||||
const userDatabase = opendiscord.databases.get("openticket:users")
|
||||
const userDatabase = opendiscord.databases.get("opendiscord:users")
|
||||
if (!userDatabase) return
|
||||
|
||||
const users = await userDatabase.getCategory("openticket:blacklist") ?? []
|
||||
const users = await userDatabase.getCategory("opendiscord:blacklist") ?? []
|
||||
users.forEach((user) => {
|
||||
if (typeof user.value == "string" || user.value === null) opendiscord.blacklist.add(new api.ODBlacklist(user.key,user.value))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user