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:
parent
653d6c1dc2
commit
0822fc15e5
130 changed files with 8877 additions and 411 deletions
|
@ -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(
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue