seyfert 3.1.2 → 3.1.3-dev-14703240001.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.
|
@@ -36,7 +36,7 @@ export declare class RoleShorter extends BaseShorter {
|
|
|
36
36
|
* @param reason The reason for deleting the role.
|
|
37
37
|
* @returns A Promise that resolves when the role is deleted.
|
|
38
38
|
*/
|
|
39
|
-
delete(guildId: string, roleId: string, reason?: string): Promise<
|
|
39
|
+
delete(guildId: string, roleId: string, reason?: string): Promise<void>;
|
|
40
40
|
/**
|
|
41
41
|
* Edits the positions of roles in the guild.
|
|
42
42
|
* @param guildId The ID of the guild.
|
|
@@ -75,9 +75,8 @@ class RoleShorter extends base_1.BaseShorter {
|
|
|
75
75
|
* @returns A Promise that resolves when the role is deleted.
|
|
76
76
|
*/
|
|
77
77
|
async delete(guildId, roleId, reason) {
|
|
78
|
-
|
|
78
|
+
await this.client.proxy.guilds(guildId).roles(roleId).delete({ reason });
|
|
79
79
|
this.client.cache.roles?.removeIfNI('Guilds', roleId, guildId);
|
|
80
|
-
return transformers_1.Transformers.GuildRole(this.client, res, guildId);
|
|
81
80
|
}
|
|
82
81
|
/**
|
|
83
82
|
* Edits the positions of roles in the guild.
|
|
@@ -59,7 +59,7 @@ export declare class Guild<State extends StructStates = 'api'> extends Guild_bas
|
|
|
59
59
|
create: (body: import("../types").RESTPostAPIGuildRoleJSONBody) => Promise<import("../client").GuildRoleStructure>;
|
|
60
60
|
list: (force?: boolean) => Promise<import("../client").GuildRoleStructure[]>;
|
|
61
61
|
edit: (roleId: string, body: import("../types").RESTPatchAPIGuildRoleJSONBody, reason?: string) => Promise<import("../client").GuildRoleStructure>;
|
|
62
|
-
delete: (roleId: string, reason?: string) => Promise<
|
|
62
|
+
delete: (roleId: string, reason?: string) => Promise<void>;
|
|
63
63
|
editPositions: (body: import("../types").RESTPatchAPIGuildRolePositionsJSONBody) => Promise<import("../client").GuildRoleStructure[]>;
|
|
64
64
|
};
|
|
65
65
|
channels: {
|
|
@@ -15,7 +15,7 @@ export declare class GuildRole extends DiscordBase {
|
|
|
15
15
|
guild(mode: 'cache'): ReturnCache<GuildStructure<'cached'> | undefined>;
|
|
16
16
|
fetch(force?: boolean): Promise<GuildRoleStructure>;
|
|
17
17
|
edit(body: RESTPatchAPIGuildRoleJSONBody): Promise<GuildRoleStructure>;
|
|
18
|
-
delete(reason?: string): Promise<
|
|
18
|
+
delete(reason?: string): Promise<void>;
|
|
19
19
|
toString(): `<@&${string}>`;
|
|
20
20
|
static methods(ctx: MethodContext<{
|
|
21
21
|
guildId: string;
|
|
@@ -23,7 +23,7 @@ export declare class GuildRole extends DiscordBase {
|
|
|
23
23
|
create: (body: RESTPostAPIGuildRoleJSONBody) => Promise<GuildRoleStructure>;
|
|
24
24
|
list: (force?: boolean) => Promise<GuildRoleStructure[]>;
|
|
25
25
|
edit: (roleId: string, body: RESTPatchAPIGuildRoleJSONBody, reason?: string) => Promise<GuildRoleStructure>;
|
|
26
|
-
delete: (roleId: string, reason?: string) => Promise<
|
|
26
|
+
delete: (roleId: string, reason?: string) => Promise<void>;
|
|
27
27
|
editPositions: (body: RESTPatchAPIGuildRolePositionsJSONBody) => Promise<GuildRoleStructure[]>;
|
|
28
28
|
};
|
|
29
29
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "seyfert",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.3-dev-14703240001.0",
|
|
4
4
|
"description": "The most advanced framework for discord bots",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.js",
|
|
@@ -76,4 +76,4 @@
|
|
|
76
76
|
"esbuild"
|
|
77
77
|
]
|
|
78
78
|
}
|
|
79
|
-
}
|
|
79
|
+
}
|