Skip to content

Commit

Permalink
refactor(arabot): run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
smyalygames committed Aug 6, 2024
1 parent 0ac0ff7 commit dba9aa9
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 7 deletions.
5 changes: 4 additions & 1 deletion src/commands/mod/ban/ban.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ import { EmbedBuilder } from 'discord.js';
import IDs from '#utils/ids';
import { addBan, checkBan } from '#utils/database/moderation/ban';
import { addEmptyUser, updateUser } from '#utils/database/dbExistingUser';
import { checkTempBan, removeTempBan } from '#utils/database/moderation/tempBan';
import {
checkTempBan,
removeTempBan,
} from '#utils/database/moderation/tempBan';

export class BanCommand extends Command {
public constructor(context: Command.LoaderContext, options: Command.Options) {
Expand Down
5 changes: 4 additions & 1 deletion src/commands/mod/ban/unban.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ import type {
import { EmbedBuilder } from 'discord.js';
import IDs from '#utils/ids';
import { removeBan, checkBan, addBan } from '#utils/database/moderation/ban';
import { checkTempBan, removeTempBan } from '#utils/database/moderation/tempBan';
import {
checkTempBan,
removeTempBan,
} from '#utils/database/moderation/tempBan';
import { addEmptyUser, addExistingUser } from '#utils/database/dbExistingUser';

export class UnbanCommand extends Command {
Expand Down
6 changes: 5 additions & 1 deletion src/commands/mod/vcMute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@

import { Args, Command, RegisterBehavior } from '@sapphire/framework';
import type { GuildMember, Message } from 'discord.js';
import { addMute, removeMute, checkActive } from '#utils/database/moderation/vcMute';
import {
addMute,
removeMute,
checkActive,
} from '#utils/database/moderation/vcMute';
import { addExistingUser } from '#utils/database/dbExistingUser';

export class VCMuteCommand extends Command {
Expand Down
5 changes: 4 additions & 1 deletion src/commands/mod/warning/deleteWarning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ import { Args, Command, RegisterBehavior } from '@sapphire/framework';
import { EmbedBuilder, TextChannel } from 'discord.js';
import type { Message, Guild, User } from 'discord.js';
import IDs from '#utils/ids';
import { deleteWarning, fetchWarning } from '#utils/database/moderation/warnings';
import {
deleteWarning,
fetchWarning,
} from '#utils/database/moderation/warnings';
import { checkStaff } from '#utils/checker';

export class DeleteWarningCommand extends Command {
Expand Down
5 changes: 4 additions & 1 deletion src/listeners/modMail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ import { ChannelType } from 'discord.js';
import type { GuildChannel, EmbedBuilder } from 'discord.js';
import { setTimeout } from 'timers/promises';
import IDs from '#utils/ids';
import { checkActive, getRestrictions } from '#utils/database/moderation/restriction';
import {
checkActive,
getRestrictions,
} from '#utils/database/moderation/restriction';
import { findNotes } from '#utils/database/moderation/sus';
import {
createRestrictLogEmbed,
Expand Down
5 changes: 4 additions & 1 deletion src/listeners/rolesJoinServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ import type {
import { ChannelType } from 'discord.js';
import { fetchRoles, getLeaveRoles } from '#utils/database/dbExistingUser';
import { blockTime } from '#utils/database/verification';
import { checkActive, getSection } from '#utils/database/moderation/restriction';
import {
checkActive,
getSection,
} from '#utils/database/moderation/restriction';
import { blockedRoles, blockedRolesAfterRestricted } from '#utils/blockedRoles';
import IDs from '#utils/ids';

Expand Down
5 changes: 4 additions & 1 deletion src/scheduled-tasks/tempBan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ import { ScheduledTask } from '@sapphire/plugin-scheduled-tasks';
import IDs from '#utils/ids';
import { EmbedBuilder } from 'discord.js';
import { checkBan } from '#utils/database/moderation/ban';
import { checkTempBan, removeTempBan } from '#utils/database/moderation/tempBan';
import {
checkTempBan,
removeTempBan,
} from '#utils/database/moderation/tempBan';

export class TempBan extends ScheduledTask {
public constructor(
Expand Down

0 comments on commit dba9aa9

Please sign in to comment.