@zennify/sdk-js 1.20.0 → 1.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zennify/sdk-js",
3
- "version": "1.20.0",
3
+ "version": "1.21.0",
4
4
  "description": "A simple package to work with https://api.zennify.app",
5
5
  "main": "dist/main.js",
6
6
  "keywords": [],
@@ -1,13 +1,11 @@
1
1
  import { type ChannelType } from 'discord.js';
2
2
 
3
3
  export interface DiscordGuildChannel {
4
- id: string,
5
4
  name: string,
6
5
  type: ChannelType
7
6
  }
8
7
 
9
8
  export interface DiscordGuildRole {
10
- id: string,
11
9
  name: string,
12
10
  position: number,
13
11
  color: number
@@ -18,5 +16,6 @@ export interface DiscordGuild {
18
16
  name: string,
19
17
  icon_url: string,
20
18
  owner_id: string,
21
- channels: DiscordGuildChannel[]
19
+ channels: Record<string, DiscordGuildChannel>,
20
+ roles: Record<string, DiscordGuildRole>
22
21
  }
@@ -1,11 +1,9 @@
1
1
  import { type ChannelType } from 'discord.js';
2
2
  export interface DiscordGuildChannel {
3
- id: string;
4
3
  name: string;
5
4
  type: ChannelType;
6
5
  }
7
6
  export interface DiscordGuildRole {
8
- id: string;
9
7
  name: string;
10
8
  position: number;
11
9
  color: number;
@@ -15,5 +13,6 @@ export interface DiscordGuild {
15
13
  name: string;
16
14
  icon_url: string;
17
15
  owner_id: string;
18
- channels: DiscordGuildChannel[];
16
+ channels: Record<string, DiscordGuildChannel>;
17
+ roles: Record<string, DiscordGuildRole>;
19
18
  }