3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-11 04:45:02 +00:00

Type fixes for djs

This commit is contained in:
Dark 2021-06-30 04:56:56 +02:00
parent 653d6c1dc2
commit 0822fc15e5
No known key found for this signature in database
GPG key ID: 2CD6ACB6B0A87B8A
130 changed files with 8877 additions and 411 deletions

View file

@ -1,3 +1,4 @@
import { Snowflake } from "discord.js";
import { GuildPluginData } from "knub";
import { PingableRole } from "../../../data/entities/PingableRole";
import { PingableRolesPluginType } from "../types";
@ -7,7 +8,7 @@ export function disablePingableRoles(
pingableRoles: PingableRole[],
) {
for (const pingableRole of pingableRoles) {
const role = pluginData.guild.roles.cache.get(pingableRole.role_id);
const role = pluginData.guild.roles.cache.get(pingableRole.role_id as Snowflake);
if (!role) continue;
role.edit(

View file

@ -1,3 +1,4 @@
import { Snowflake } from "discord.js";
import { GuildPluginData } from "knub";
import { PingableRole } from "../../../data/entities/PingableRole";
import { PingableRolesPluginType } from "../types";
@ -7,7 +8,7 @@ export function enablePingableRoles(
pingableRoles: PingableRole[],
) {
for (const pingableRole of pingableRoles) {
const role = pluginData.guild.roles.cache.get(pingableRole.role_id);
const role = pluginData.guild.roles.cache.get(pingableRole.role_id as Snowflake);
if (!role) continue;
role.edit(