IdeaService
Index
Constructors
Properties
Methods
Constructors
constructor
Parameters
httpRequest: BaseHttpRequest
Returns IdeaService
Properties
publicreadonlyhttpRequest
Methods
publicideaCreate
Parameters
__namedParameters: { requestBody: CreateIdeaParam }
Returns CancelablePromise<{ data?: CreateIdeaResponse }>
any Successfully created the idea.
publicideaInfo
Get an idea's information
Bot-compatible
Retrieves information about an idea.Parameters
__namedParameters: { id: string }
Returns CancelablePromise<{ data?: GetIdeaResponse }>
any Successfully retrieved information about the idea.
publicideaList
List out ideas
Bot-compatible
Lists out a given number of ideas in a channel. This method uses the Swit API's pagination scheme.Parameters
__namedParameters: { channelId: string; limit?: number; offset?: string }
Returns CancelablePromise<{ data?: GetIdeaListResponse }>
any Successfully retrieved the ideas.
publicideaReactionCreate
React to an idea Adds a reaction emoji to an idea.
Parameters
__namedParameters: { requestBody: AddIdeaReactionParam }
Returns CancelablePromise<{ data?: AddIdeaReactionResponse }>
any Successfully added the reaction.
publicideaReactionRemove
Remove a reaction emoji from an idea Removes a reaction emoji from an idea.
Parameters
__namedParameters: { requestBody: DelIdeaReactionParam }
Returns CancelablePromise<any>
any Successfully removed the reaction.
publicideaRemove
Delete an idea
Bot-compatible
Deletes an idea in a channel.Parameters
__namedParameters: { requestBody: DelIdeaParam }
Returns CancelablePromise<any>
any Successfully deleted the idea.
Create an idea
Bot-compatible
Creates a idea in a channel.ApiError