New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

guilded.ts

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

guilded.ts - npm Package Compare versions

Comparing version 0.13.1 to 0.14.0

CHANGELOG.md

4

lib/structures/calendarEvent/CalendarEventRsvp.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CalendarEventRsvp = void 0;
exports.CalendarEventRsvpStatus = exports.CalendarEventRsvp = void 0;
const guilded_api_typings_1 = require("guilded-api-typings");
Object.defineProperty(exports, "CalendarEventRsvpStatus", { enumerable: true, get: function () { return guilded_api_typings_1.CalendarEventRsvpStatus; } });
const Base_1 = require("../Base");

@@ -5,0 +7,0 @@ /**

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Channel = void 0;
exports.ChannelType = exports.Channel = void 0;
const guilded_api_typings_1 = require("guilded-api-typings");
Object.defineProperty(exports, "ChannelType", { enumerable: true, get: function () { return guilded_api_typings_1.ChannelType; } });
const Base_1 = require("../Base");

@@ -108,45 +109,45 @@ const ChannelWebhookManager_1 = require("../../managers/channel/ChannelWebhookManager");

get isAnnouncement() {
return this.type === guilded_api_typings_1.APIChannelType.Announcements;
return this.type === guilded_api_typings_1.ChannelType.Announcements;
}
/** Whther the channel is a chat channel. */
get isChat() {
return this.type === guilded_api_typings_1.APIChannelType.Chat;
return this.type === guilded_api_typings_1.ChannelType.Chat;
}
/** Whether the channel is chat based. */
get isChatBased() {
return (this.type === guilded_api_typings_1.APIChannelType.Chat ||
this.type === guilded_api_typings_1.APIChannelType.Stream ||
this.type === guilded_api_typings_1.APIChannelType.Voice);
return (this.type === guilded_api_typings_1.ChannelType.Chat ||
this.type === guilded_api_typings_1.ChannelType.Stream ||
this.type === guilded_api_typings_1.ChannelType.Voice);
}
/** Whther the channel is a calendar channel. */
get isCalendar() {
return this.type === guilded_api_typings_1.APIChannelType.Calendar;
return this.type === guilded_api_typings_1.ChannelType.Calendar;
}
/** Whther the channel is a forum channel. */
get isForum() {
return this.type === guilded_api_typings_1.APIChannelType.Forums;
return this.type === guilded_api_typings_1.ChannelType.Forums;
}
/** Whther the channel is a media channel. */
get isMedia() {
return this.type === guilded_api_typings_1.APIChannelType.Media;
return this.type === guilded_api_typings_1.ChannelType.Media;
}
/** Whther the channel is a doc channel. */
get isDoc() {
return this.type === guilded_api_typings_1.APIChannelType.Docs;
return this.type === guilded_api_typings_1.ChannelType.Docs;
}
/** Whther the channel is a voice channel. */
get isVoice() {
return this.type === guilded_api_typings_1.APIChannelType.Voice;
return this.type === guilded_api_typings_1.ChannelType.Voice;
}
/** Whther the channel is a list channel. */
get isList() {
return this.type === guilded_api_typings_1.APIChannelType.List;
return this.type === guilded_api_typings_1.ChannelType.List;
}
/** Whther the channel is a schedule channel. */
get isSchedule() {
return this.type === guilded_api_typings_1.APIChannelType.Scheduling;
return this.type === guilded_api_typings_1.ChannelType.Scheduling;
}
/** Whther the channel is a stream channel. */
get isStream() {
return this.type === guilded_api_typings_1.APIChannelType.Stream;
return this.type === guilded_api_typings_1.ChannelType.Stream;
}

@@ -153,0 +154,0 @@ /**

@@ -30,2 +30,4 @@ "use strict";

content;
/** The mentions of the forum topic. */
mentions;
/**

@@ -49,2 +51,3 @@ * @param channel The forum channel the topic belongs to.

this.content = 'content' in raw ? raw.content : undefined;
this.mentions = 'mentions' in raw ? raw.mentions : undefined;
if (cache)

@@ -51,0 +54,0 @@ channel.topics.cache.set(this.id, this);

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Message = void 0;
exports.MessageType = exports.Message = void 0;
const guilded_api_typings_1 = require("guilded-api-typings");
Object.defineProperty(exports, "MessageType", { enumerable: true, get: function () { return guilded_api_typings_1.MessageType; } });
const Base_1 = require("../Base");

@@ -78,7 +79,7 @@ const MessageReactionManager_1 = require("../../managers/message/MessageReactionManager");

get isDefault() {
return this.type === guilded_api_typings_1.APIMessageType.Default;
return this.type === guilded_api_typings_1.MessageType.Default;
}
/** Whether the message is a system message. */
get isSystem() {
return this.type === guilded_api_typings_1.APIMessageType.System;
return this.type === guilded_api_typings_1.MessageType.System;
}

@@ -85,0 +86,0 @@ /** The server the message belongs to. */

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Server = void 0;
exports.ServerType = exports.Server = void 0;
const guilded_api_typings_1 = require("guilded-api-typings");
Object.defineProperty(exports, "ServerType", { enumerable: true, get: function () { return guilded_api_typings_1.ServerType; } });
const Base_1 = require("../Base");

@@ -78,31 +79,31 @@ const ServerMemberManager_1 = require("../../managers/server/ServerMemberManager");

get isTeam() {
return this.type === guilded_api_typings_1.APIServerType.Team;
return this.type === guilded_api_typings_1.ServerType.Team;
}
/** Whether the server is a organization server. */
get isOrganization() {
return this.type === guilded_api_typings_1.APIServerType.Organization;
return this.type === guilded_api_typings_1.ServerType.Organization;
}
/** Whether the server is a community server. */
get isCommunity() {
return this.type === guilded_api_typings_1.APIServerType.Community;
return this.type === guilded_api_typings_1.ServerType.Community;
}
/** Whether the server is a clan server. */
get isClan() {
return this.type === guilded_api_typings_1.APIServerType.Clan;
return this.type === guilded_api_typings_1.ServerType.Clan;
}
/** Whether the server is a guild server. */
get isGuild() {
return this.type === guilded_api_typings_1.APIServerType.Guild;
return this.type === guilded_api_typings_1.ServerType.Guild;
}
/** Whether the server is a friends server. */
get isFriends() {
return this.type === guilded_api_typings_1.APIServerType.Friends;
return this.type === guilded_api_typings_1.ServerType.Friends;
}
/** Whether the server is a streaming server. */
get isStreaming() {
return this.type === guilded_api_typings_1.APIServerType.Streaming;
return this.type === guilded_api_typings_1.ServerType.Streaming;
}
/** Whether the server is a other type. */
get isOther() {
return this.type === guilded_api_typings_1.APIServerType.Other;
return this.type === guilded_api_typings_1.ServerType.Other;
}

@@ -109,0 +110,0 @@ /** The server's default channel. */

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ClientUser = exports.User = void 0;
exports.UserType = exports.ClientUser = exports.User = void 0;
const guilded_api_typings_1 = require("guilded-api-typings");
Object.defineProperty(exports, "UserType", { enumerable: true, get: function () { return guilded_api_typings_1.UserType; } });
const Base_1 = require("./Base");

@@ -48,7 +49,7 @@ /**

get isBot() {
return this.type === guilded_api_typings_1.APIUserType.Bot;
return this.type === guilded_api_typings_1.UserType.Bot;
}
/** Whether the user is a human. */
get isUser() {
return this.type === guilded_api_typings_1.APIUserType.User;
return this.type === guilded_api_typings_1.UserType.User;
}

@@ -73,3 +74,3 @@ }

constructor(client, raw, cache) {
super(client, { type: guilded_api_typings_1.APIUserType.Bot, ...raw }, cache);
super(client, { type: guilded_api_typings_1.UserType.Bot, ...raw }, cache);
this.raw = raw;

@@ -76,0 +77,0 @@ this.botId = raw.botId;

{
"name": "guilded.ts",
"version": "0.13.1",
"version": "0.14.0",
"description": "A powerful NPM module that allows you to easily interact with the Guilded API.",
"main": "lib/index.js",
"types": "typings/index.d.ts",
"repository": {
"url": "guildedts/guilded.ts",
"directory": "packages/guilded.ts"
},
"homepage": "https://guildedts.js.org",
"main": "lib",
"types": "typings",
"files": [
"CHANGELOG.md",
"lib",

@@ -16,15 +22,7 @@ "typings"

"ts",
"types"
"typings"
],
"contributors": [
"Gamertike (https://gamertike.com)"
"Danielius | Gamertike (https://gamertike.com)"
],
"repository": {
"type": "git",
"url": "https://github.com/guildedts/guilded.ts.git"
},
"bugs": {
"url": "https://github.com/guildedts/guilded.ts/issues"
},
"homepage": "https://guildedts.js.org",
"license": "Apache-2.0",

@@ -34,5 +32,5 @@ "dependencies": {

"@guildedts/builders": "^0.2.8",
"@guildedts/rest": "^0.10.1",
"@guildedts/rest": "^0.10.2",
"@guildedts/ws": "^0.4.3",
"guilded-api-typings": "^0.8.1",
"guilded-api-typings": "^0.9.0",
"node-fetch": "^2.6.7"

@@ -39,0 +37,0 @@ },

import { Collection } from '@discordjs/collection';
import { APICalendarEventRsvpStatusString } from 'guilded-api-typings';
import { CalendarEventRsvpStatus } from 'guilded-api-typings';
import { CalendarEvent } from '../../structures/calendarEvent/CalendarEvent';

@@ -40,3 +40,3 @@ import { CalendarEventRsvp } from '../../structures/calendarEvent/CalendarEventRsvp';

*/
edit(calendarEventRsvp: string | CalendarEventRsvp, status: APICalendarEventRsvpStatusString): Promise<CalendarEventRsvp>;
edit(calendarEventRsvp: string | CalendarEventRsvp, status: CalendarEventRsvpStatus): Promise<CalendarEventRsvp>;
/**

@@ -43,0 +43,0 @@ * Delete a RSVP from the calendar event.

@@ -1,2 +0,2 @@

import { APIMessagePayload, APIEmbed, APIMessageFetchOptions, APIMessageEditPayload } from 'guilded-api-typings';
import { APIMessagePayload, APIEmbed, APIMessageFetchManyOptions, APIMessageEditPayload } from 'guilded-api-typings';
import { Embed } from '@guildedts/builders';

@@ -57,3 +57,3 @@ import { BaseManager, FetchManyOptions, FetchOptions } from '../BaseManager';

/** The options for fetching messages. */
export interface MessageFetchManyOptions extends FetchManyOptions, APIMessageFetchOptions {
export interface MessageFetchManyOptions extends FetchManyOptions, APIMessageFetchManyOptions {
}

@@ -60,0 +60,0 @@ /** The payload for creating a message. */

@@ -39,3 +39,3 @@ import { BaseManager, FetchManyOptions, FetchOptions } from '../BaseManager';

*/
fetchSocialLink(member: string | ServerMember, type: string): Promise<import("guilded-api-typings").APISocialLink>;
fetchSocialLink(member: string | ServerMember, type: string): Promise<import("guilded-api-typings/typings").APISocialLink>;
/**

@@ -42,0 +42,0 @@ * Set the nickname of a member in the server.

@@ -1,2 +0,2 @@

import { APICalendarEventRsvp, APICalendarEventRsvpStatusString } from 'guilded-api-typings';
import { APICalendarEventRsvp, CalendarEventRsvpStatus } from 'guilded-api-typings';
import { FetchOptions } from '../../managers/BaseManager';

@@ -21,3 +21,3 @@ import { Base } from '../Base';

/** The status of the calendar event RSVP. */
readonly status: APICalendarEventRsvpStatusString;
readonly status: CalendarEventRsvpStatus;
/** The ID of the user that created the calendar event RSVP. */

@@ -95,3 +95,3 @@ readonly createdBy: string;

*/
edit(status: APICalendarEventRsvpStatusString): Promise<this>;
edit(status: CalendarEventRsvpStatus): Promise<this>;
/**

@@ -104,2 +104,3 @@ * Delete the calendar event RSVP.

}
export { CalendarEventRsvpStatus };
//# sourceMappingURL=CalendarEventRsvp.d.ts.map

@@ -1,2 +0,2 @@

import { APIChannel, APIChannelEditPayload, APIChannelTypeString } from 'guilded-api-typings';
import { APIChannel, APIChannelEditPayload, ChannelType } from 'guilded-api-typings';
import { Base } from '../Base';

@@ -13,3 +13,3 @@ import { Client } from '../Client';

/** The type of the channel. */
readonly type: APIChannelTypeString;
readonly type: ChannelType;
/** The name of the channel. */

@@ -166,2 +166,3 @@ readonly name: string;

}
export { ChannelType };
//# sourceMappingURL=Channel.d.ts.map

@@ -1,2 +0,2 @@

import { APIForumTopic, APIForumTopicEditPayload, APIForumTopicSummary } from 'guilded-api-typings';
import { APIForumTopic, APIForumTopicEditPayload, APIForumTopicSummary, APIMentions } from 'guilded-api-typings';
import { FetchOptions } from '../managers/BaseManager';

@@ -30,2 +30,4 @@ import { Base } from './Base';

readonly content?: string;
/** The mentions of the forum topic. */
readonly mentions?: APIMentions;
/**

@@ -32,0 +34,0 @@ * @param channel The forum channel the topic belongs to.

@@ -1,2 +0,2 @@

import { APIMessage, APIEmbed, APIMentions, APIMessageTypeString } from 'guilded-api-typings';
import { APIMessage, APIEmbed, APIMentions, MessageType } from 'guilded-api-typings';
import { Base } from '../Base';

@@ -19,3 +19,3 @@ import { MessageEditPayloadResolvable, MessagePayloadResolvable } from '../../managers/message/MessageManager';

/** The type of the message. */
readonly type: APIMessageTypeString;
readonly type: MessageType;
/** The ID of the server the message belongs to. */

@@ -159,2 +159,3 @@ readonly serverId?: string;

}
export { MessageType };
//# sourceMappingURL=Message.d.ts.map

@@ -1,2 +0,2 @@

import { APIChannelPayload, APIServer, APIServerTypeString } from 'guilded-api-typings';
import { APIChannelPayload, APIServer, ServerType } from 'guilded-api-typings';
import { Client } from '../Client';

@@ -17,3 +17,3 @@ import { Base } from '../Base';

/** The type of the server. */
readonly type?: APIServerTypeString;
readonly type?: ServerType;
/** The name of the server. */

@@ -100,2 +100,3 @@ readonly name: string;

}
export { ServerType };
//# sourceMappingURL=Server.d.ts.map

@@ -1,2 +0,2 @@

import { APIClientUser, APIUser, APIUserSummary, APIUserTypeString } from 'guilded-api-typings';
import { APIClientUser, APIUser, APIUserSummary, UserType } from 'guilded-api-typings';
import { Base } from './Base';

@@ -11,3 +11,3 @@ import { Client } from './Client';

/** The type of the user. */
readonly type?: APIUserTypeString;
readonly type?: UserType;
/** The name of the user. */

@@ -53,2 +53,3 @@ readonly name: string;

}
export { UserType };
//# sourceMappingURL=User.d.ts.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc