Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
hwangsihu authored Jul 12, 2024
2 parents 649153a + 4798986 commit bede7e2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/commands/playlist/Steal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default class StealPlaylist extends Command {
let userId;
let targetUser = ctx.args[0];

if (targetUser && targetUser.startsWith("<@") && targetUser.endsWith(">")) {
if (targetUser?.targetUser.startsWith("<@") && targetUser.endsWith(">")) {
targetUser = targetUser.slice(2, -1);

if (targetUser.startsWith("!")) {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/playlist/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default class GetPlaylists extends Command {
let userId;
let targetUser = ctx.args[0];

if (targetUser && targetUser.startsWith("<@") && targetUser.endsWith(">")) {
if (targetUser?.targetUser.startsWith("<@") && targetUser.endsWith(">")) {
targetUser = targetUser.slice(2, -1);

if (targetUser.startsWith("!")) {
Expand Down
2 changes: 1 addition & 1 deletion src/database/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export default class ServerData {
}

public async getUserPlaylists(userId: string) {
return this.prisma.playlist.findMany({
return await this.prisma.playlist.findMany({
where: {
userId: userId,
},
Expand Down
2 changes: 1 addition & 1 deletion src/events/client/MessageCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export default class MessageCreate extends Event {
}
}
}
}
}

if (command.args && !args.length) {
const embed = this.client
Expand Down

0 comments on commit bede7e2

Please sign in to comment.