@elara-services/tickets 4.0.9 → 4.1.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.
Files changed (2) hide show
  1. package/index.d.ts +7 -2
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  declare module "@elara-services/tickets" {
2
-
2
+
3
3
  import type { Client, MessageOptions, GuildMember, Guild, User, TextBasedChannel, Message, Interaction } from "discord.js";
4
4
 
5
5
  export type Langs = "en-US";
@@ -123,6 +123,11 @@ declare module "@elara-services/tickets" {
123
123
 
124
124
  private _debug(...args: unknown[]): unknown;
125
125
 
126
+ public get manage(): {
127
+ add(channelId: string, userId: string, permType: "member" | "mod"): Promise<{ status: boolean, message: string }>;
128
+ remove(channelId: string, userId: string): Promise<{ status: boolean, message: string }>;
129
+ };
130
+
126
131
  public get webhookOptions(): {
127
132
  id: string | undefined;
128
133
  token: string | undefined;
@@ -141,7 +146,7 @@ declare module "@elara-services/tickets" {
141
146
  public button(options: { style: 1 | 2 | 3 | 4 | 5 | number, id?: string, label?: string, emoji?: { name?: string, id?: string } }): { type: number, custom_id: string, style: number, label?: string, emoji?: { name?: string, id?: string } }
142
147
  public closeTicket(options: {
143
148
  member: GuildMember,
144
- guild: Guild,
149
+ guild: Guild,
145
150
  user: User,
146
151
  messages: Message[],
147
152
  channel: TextBasedChannel
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elara-services/tickets",
3
- "version": "4.0.9",
3
+ "version": "4.1.0",
4
4
  "description": "Helper for tickets",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",