Skip to content

Commit

Permalink
Fix getGroupGames (hopefully)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuadl12 committed Jul 9, 2023
1 parent d390779 commit 0820012
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/funblox/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "funblox.js",
"version": "8.3.0",
"version": "8.3.1",
"description": "This package made by fedee#9606 this a roblox API you may use it for your verification or something if you use our package give us credit <3.",
"source": "src/index.ts",
"main": "lib/index.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/funblox/src/group/getGroupGames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import type { GroupGamesAPIResponse } from "../utils/APITypes";
type GroupGame = {
id: number,
name: string,

description: string,
placeVisits: number
}

export default function getGroupGames(groupId: string | number): Promise<GroupGame[]> {
Expand Down
2 changes: 1 addition & 1 deletion packages/funblox/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export {
getGroup,
getGroups,
getGroupWall,
getGroupGames,
deletePost,
deletePostBySpecificUser,
api,
Expand All @@ -42,6 +43,5 @@ export {
getPlaceInfo,
getGameVotes,
getUniverseId,
getGroupGames,
setCookie,
};
10 changes: 10 additions & 0 deletions packages/funblox/tests/getGroupGames.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { getGroupGames } from '../';

describe('FunBlox', () => {
describe('#getGroupGames', () => {
it('should return group\'s games', async function () {
const data = await getGroupGames(1);
expect(data).toBeInstanceOf(Object);
});
});
});

0 comments on commit 0820012

Please sign in to comment.