mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-14 21:31:50 +00:00
chore: run prettier
This commit is contained in:
parent
1518d58e25
commit
710bedd050
3 changed files with 3 additions and 14 deletions
|
@ -1,9 +1,4 @@
|
||||||
import {
|
import { ChannelType, GuildTextThreadCreateOptions, ThreadAutoArchiveDuration, ThreadChannel } from "discord.js";
|
||||||
ChannelType,
|
|
||||||
GuildTextThreadCreateOptions,
|
|
||||||
ThreadAutoArchiveDuration,
|
|
||||||
ThreadChannel,
|
|
||||||
} from "discord.js";
|
|
||||||
import z from "zod";
|
import z from "zod";
|
||||||
import { TemplateSafeValueContainer, renderTemplate } from "../../../templateFormatter";
|
import { TemplateSafeValueContainer, renderTemplate } from "../../../templateFormatter";
|
||||||
import { MINUTES, convertDelayStringToMS, noop, zBoundedCharacters, zDelayString } from "../../../utils";
|
import { MINUTES, convertDelayStringToMS, noop, zBoundedCharacters, zDelayString } from "../../../utils";
|
||||||
|
|
|
@ -6,10 +6,7 @@ import { UtilityPluginType } from "../types";
|
||||||
|
|
||||||
const MENTION_ICON = "https://cdn.discordapp.com/attachments/705009450855039042/839284872152481792/mention.png";
|
const MENTION_ICON = "https://cdn.discordapp.com/attachments/705009450855039042/839284872152481792/mention.png";
|
||||||
|
|
||||||
export async function getRoleInfoEmbed(
|
export async function getRoleInfoEmbed(pluginData: GuildPluginData<UtilityPluginType>, role: Role): Promise<APIEmbed> {
|
||||||
pluginData: GuildPluginData<UtilityPluginType>,
|
|
||||||
role: Role,
|
|
||||||
): Promise<APIEmbed> {
|
|
||||||
const embed: EmbedWith<"fields" | "author" | "color"> = {
|
const embed: EmbedWith<"fields" | "author" | "color"> = {
|
||||||
fields: [],
|
fields: [],
|
||||||
author: {
|
author: {
|
||||||
|
|
|
@ -4,10 +4,7 @@ import { snowflakeToTimestamp } from "../../../utils/snowflakeToTimestamp";
|
||||||
|
|
||||||
const SNOWFLAKE_ICON = "https://cdn.discordapp.com/attachments/740650744830623756/742020790471491668/snowflake.png";
|
const SNOWFLAKE_ICON = "https://cdn.discordapp.com/attachments/740650744830623756/742020790471491668/snowflake.png";
|
||||||
|
|
||||||
export async function getSnowflakeInfoEmbed(
|
export async function getSnowflakeInfoEmbed(snowflake: string, showUnknownWarning = false): Promise<APIEmbed> {
|
||||||
snowflake: string,
|
|
||||||
showUnknownWarning = false,
|
|
||||||
): Promise<APIEmbed> {
|
|
||||||
const embed: EmbedWith<"fields" | "author"> = {
|
const embed: EmbedWith<"fields" | "author"> = {
|
||||||
fields: [],
|
fields: [],
|
||||||
author: {
|
author: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue