Skip to content

Commit

Permalink
new
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperCater committed Jul 30, 2024
1 parent 651dc91 commit dfedad9
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wrapblox",
"version": "0.5.4",
"version": "0.5.6",
"description": "A wrapper for Roblox's API",
"main": "./dist/index.js",
"module": "./dist/index.js",
Expand Down
8 changes: 8 additions & 0 deletions src/Classes/Group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,14 @@ class Group {
}
});
}

async setShout(message : string) {
return await this.client.fetchHandler.fetch('PATCH', 'Groups', `/groups/${this.id}/status`, {
body: {
message: message
}
});
}



Expand Down
26 changes: 14 additions & 12 deletions src/Types/GroupTypes.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
export type RawShout = {
body : string,
poster : {
buildersClubMembershipType : number,
hasVerifiedBadge : boolean,
userId : number,
username : string,
displayName : string,
},
created : string,
updated : string,
}

export type RawGroupData = {
id : number,
name : string,
Expand All @@ -9,18 +22,7 @@ export type RawGroupData = {
username : string,
displayName : string,
},
shout : {
body : string,
poster : {
buildersClubMembershipType : number,
hasVerifiedBadge : boolean,
userId : number,
username : string,
displayName : string,
},
created : string,
updated : string,
},
shout : RawShout,
memberCount : number,
isBuildersClubOnly : boolean,
publicEntryAllowed : boolean,
Expand Down

0 comments on commit dfedad9

Please sign in to comment.