Skip to content

Commit

Permalink
fix: Import PlayDto
Browse files Browse the repository at this point in the history
  • Loading branch information
fjodor-rybakov committed Jun 17, 2022
1 parent 6591ba5 commit 8e5faf5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/sample/dependency-injection/src/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { DiscordModule } from '@discord-nestjs/core';
import { PlayDto } from '@discord-nestjs/sample-command/dist/bot/dto/play.dto';
import { Module } from '@nestjs/common';
import { ConfigModule, ConfigService } from '@nestjs/config';
import { Intents, Message } from 'discord.js';
import { ApplicationCommandPermissionTypes } from 'discord.js/typings/enums';

import { BotModule } from './bot/bot.module';
import { PlayDto } from './bot/dto/play.dto';

@Module({
imports: [
Expand All @@ -32,7 +32,7 @@ import { BotModule } from './bot/bot.module';
{
id: configService.get('ROLE_WITHOUT_PLAYLIST_PERMISSION'),
type: ApplicationCommandPermissionTypes.ROLE,
permission: false,
permission: true,
},
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { PlayService } from '../services/play.service';
@Command({
name: 'play',
description: 'Plays a song',
defaultPermission: false,
})
@UsePipes(TransformPipe)
export class PlayCommand implements DiscordTransformedCommand<PlayDto> {
Expand Down

0 comments on commit 8e5faf5

Please sign in to comment.