remove Discord* types for permissions

This commit is contained in:
ITOH
2021-04-30 19:45:52 +02:00
parent 628acfce68
commit c55fa127fd
2 changed files with 2 additions and 9 deletions

View File

@@ -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>;

View File

@@ -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>;