mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 09:20:08 +00:00
remove Discord* types for permissions
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { SnakeCasedPropertiesDeep } from "../util.ts";
|
||||
import { RoleTags } from "./role_tags.ts";
|
||||
|
||||
/** https://discord.com/developers/docs/topics/permissions#role-object-role-structure */
|
||||
export interface Role {
|
||||
/** Role id */
|
||||
id: string;
|
||||
@@ -21,6 +21,3 @@ export interface Role {
|
||||
/** The tags this role has */
|
||||
tags?: RoleTags;
|
||||
}
|
||||
|
||||
/** https://discord.com/developers/docs/topics/permissions#role-object-role-structure */
|
||||
export type DiscordRole = SnakeCasedPropertiesDeep<Role>;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { SnakeCasedPropertiesDeep } from "../util.ts";
|
||||
|
||||
/** https://discord.com/developers/docs/topics/permissions#role-object-role-tags-structure */
|
||||
export interface RoleTags {
|
||||
/** The id of the bot this role belongs to */
|
||||
botId?: string;
|
||||
@@ -8,6 +7,3 @@ export interface RoleTags {
|
||||
/** Whether this is the guild's premium subscriber role */
|
||||
premiumSubscriber?: null;
|
||||
}
|
||||
|
||||
/** https://discord.com/developers/docs/topics/permissions#role-object-role-tags-structure */
|
||||
export type DiscordRoleTags = SnakeCasedPropertiesDeep<RoleTags>;
|
||||
|
||||
Reference in New Issue
Block a user