mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-04 22:16:08 +00:00
fix: add return
This commit is contained in:
parent
0c7067f751
commit
a1b0c20a30
@ -180,7 +180,7 @@ export class MemberShorter extends BaseShorter {
|
|||||||
* @param id The ID of the role to add.
|
* @param id The ID of the role to add.
|
||||||
*/
|
*/
|
||||||
addRole(guildId: string, memberId: string, id: string) {
|
addRole(guildId: string, memberId: string, id: string) {
|
||||||
this.client.proxy.guilds(guildId).members(memberId).roles(id).put({});
|
return this.client.proxy.guilds(guildId).members(memberId).roles(id).put({});
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Removes a role from a guild member.
|
* Removes a role from a guild member.
|
||||||
|
@ -129,6 +129,8 @@ export class BaseGuildMember extends DiscordBase {
|
|||||||
edit: (id: string, body: RESTPatchAPIGuildMemberJSONBody, reason?: string) =>
|
edit: (id: string, body: RESTPatchAPIGuildMemberJSONBody, reason?: string) =>
|
||||||
client.members.edit(guildId, id, body, reason),
|
client.members.edit(guildId, id, body, reason),
|
||||||
add: (id: string, body: RESTPutAPIGuildMemberJSONBody) => client.members.add(guildId, id, body),
|
add: (id: string, body: RESTPutAPIGuildMemberJSONBody) => client.members.add(guildId, id, body),
|
||||||
|
addRole: (memberId: string, id: string) => client.members.addRole(guildId, memberId, id),
|
||||||
|
removeRole: (memberId: string, id: string) => client.members.removeRole(guildId, memberId, id),
|
||||||
fetch: (memberId: string, force = false) => client.members.fetch(guildId, memberId, force),
|
fetch: (memberId: string, force = false) => client.members.fetch(guildId, memberId, force),
|
||||||
list: (query?: RESTGetAPIGuildMembersQuery, force = false) => client.members.list(guildId, query, force),
|
list: (query?: RESTGetAPIGuildMembersQuery, force = false) => client.members.list(guildId, query, force),
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user