Download OpenAPI specification:Download
Get the settings for Husqy polls module for a guild.
| guild_id required | integer (Guild Id) |
{- "data": {
- "settings": {
- "id": 0,
- "guild_id": "string",
- "save_duration_timeout": 604800,
- "delete_ended_discord_polls": false,
- "delete_ended_husqy_polls": false
}
}
}Delete the settings for Husqy polls module for a guild.
| guild_id required | integer (Guild Id) |
{- "guild_id": 0
}{- "data": {
- "settings": {
- "id": 0,
- "guild_id": "string",
- "save_duration_timeout": 604800,
- "delete_ended_discord_polls": false,
- "delete_ended_husqy_polls": false
}, - "polls": [
- {
- "id": 0,
- "guild_id": "string",
- "channel_id": "string",
- "message_id": "string",
- "poll_id": "string",
- "poll_type": 0,
- "poll_buttons_type": 0,
- "question": "string",
- "description": "string",
- "is_anonymous": false,
- "is_multi_select": false,
- "end_time": "string",
- "delete_at": "string",
- "edited_with_results": false,
- "max_votes_per_answer": 1,
- "sent_by_husqy": false,
- "poll_owner_id": "string"
}
], - "answers": [
- {
- "id": 0,
- "guild_id": "string",
- "poll_id": "string",
- "answer_text": "string",
- "votes": "string",
- "label": "string",
- "emoji_name": "string",
- "emoji_id": "string",
- "answer_id": 0,
- "description": "string"
}
]
}
}Change the settings for Husqy polls module for a guild.
| guild_id required | integer (Guild Id) |
Save Duration Timeout (integer) or Save Duration Timeout (null) (Save Duration Timeout) | |
Delete Ended Discord Polls (boolean) or Delete Ended Discord Polls (null) (Delete Ended Discord Polls) | |
Delete Ended Husqy Polls (boolean) or Delete Ended Husqy Polls (null) (Delete Ended Husqy Polls) |
{- "guild_id": 0,
- "save_duration_timeout": 0,
- "delete_ended_discord_polls": true,
- "delete_ended_husqy_polls": true
}{- "data": {
- "settings": {
- "id": 0,
- "guild_id": "string",
- "save_duration_timeout": 604800,
- "delete_ended_discord_polls": false,
- "delete_ended_husqy_polls": false
}
}
}Enable the polls module for a server.
| guild_id required | integer (Guild Id) |
{- "guild_id": 0
}{- "data": {
- "settings": {
- "id": 0,
- "guild_id": "string",
- "save_duration_timeout": 604800,
- "delete_ended_discord_polls": false,
- "delete_ended_husqy_polls": false
}, - "polls": [
- {
- "id": 0,
- "guild_id": "string",
- "channel_id": "string",
- "message_id": "string",
- "poll_id": "string",
- "poll_type": 0,
- "poll_buttons_type": 0,
- "question": "string",
- "description": "string",
- "is_anonymous": false,
- "is_multi_select": false,
- "end_time": "string",
- "delete_at": "string",
- "edited_with_results": false,
- "max_votes_per_answer": 1,
- "sent_by_husqy": false,
- "poll_owner_id": "string"
}
], - "answers": [
- {
- "id": 0,
- "guild_id": "string",
- "poll_id": "string",
- "answer_text": "string",
- "votes": "string",
- "label": "string",
- "emoji_name": "string",
- "emoji_id": "string",
- "answer_id": 0,
- "description": "string"
}
]
}
}Enable the polls module for a server.
| guild_id required | integer (Guild Id) |
{- "guild_id": 0
}{- "data": {
- "settings": {
- "id": 0,
- "guild_id": "string",
- "save_duration_timeout": 604800,
- "delete_ended_discord_polls": false,
- "delete_ended_husqy_polls": false
}, - "polls": [
- {
- "id": 0,
- "guild_id": "string",
- "channel_id": "string",
- "message_id": "string",
- "poll_id": "string",
- "poll_type": 0,
- "poll_buttons_type": 0,
- "question": "string",
- "description": "string",
- "is_anonymous": false,
- "is_multi_select": false,
- "end_time": "string",
- "delete_at": "string",
- "edited_with_results": false,
- "max_votes_per_answer": 1,
- "sent_by_husqy": false,
- "poll_owner_id": "string"
}
], - "answers": [
- {
- "id": 0,
- "guild_id": "string",
- "poll_id": "string",
- "answer_text": "string",
- "votes": "string",
- "label": "string",
- "emoji_name": "string",
- "emoji_id": "string",
- "answer_id": 0,
- "description": "string"
}
]
}
}Get the entries for Husqy polls module for a guild.
| guild_id required | integer (Guild Id) |
{- "data": {
- "entries": [
- {
- "entry": {
- "id": 0,
- "guild_id": "string",
- "channel_id": "string",
- "message_id": "string",
- "poll_id": "string",
- "poll_type": 0,
- "poll_buttons_type": 0,
- "question": "string",
- "description": "string",
- "is_anonymous": false,
- "is_multi_select": false,
- "end_time": "string",
- "delete_at": "string",
- "edited_with_results": false,
- "max_votes_per_answer": 1,
- "sent_by_husqy": false,
- "poll_owner_id": "string"
}, - "answers": [
- {
- "id": 0,
- "guild_id": "string",
- "poll_id": "string",
- "answer_text": "string",
- "votes": "string",
- "label": "string",
- "emoji_name": "string",
- "emoji_id": "string",
- "answer_id": 0,
- "description": "string"
}
]
}
]
}
}Get the response for Husqy polls module for a guild.
| guild_id required | integer (Guild Id) |
| channel_id required | integer (Channel Id) |
| poll_type required | integer (Poll Type) |
Message Id (integer) or Message Id (null) (Message Id) | |
Poll Duration (string) or Poll Duration (null) (Poll Duration) | |
| poll_answer_type required | integer (Poll Answer Type) |
| question required | string (Question) |
Description (string) or Description (null) (Description) | |
required | Array of objects (Answers) |
| is_multi_select required | boolean (Is Multi Select) |
| is_anonymous required | boolean (Is Anonymous) |
| max_votes_per_answer required | integer (Max Votes Per Answer) |
| poll_owner_id required | integer (Poll Owner Id) |
Application Id (integer) or Application Id (null) (Application Id) | |
Token (string) or Token (null) (Token) |
{- "guild_id": 0,
- "channel_id": 0,
- "poll_type": 0,
- "message_id": 0,
- "poll_duration": "string",
- "poll_answer_type": 0,
- "question": "string",
- "description": "string",
- "answers": [
- {
- "answer_text": "string",
- "votes": [ ],
- "label": "string",
- "emoji_name": "string",
- "emoji_id": 0,
- "answer_id": 0,
- "description": "string",
- "vote_count": 0
}
], - "is_multi_select": true,
- "is_anonymous": true,
- "max_votes_per_answer": 0,
- "poll_owner_id": 0,
- "application_id": 0,
- "token": "string"
}{- "data": {
- "entry": {
- "id": 0,
- "guild_id": "string",
- "channel_id": "string",
- "message_id": "string",
- "poll_id": "string",
- "poll_type": 0,
- "poll_buttons_type": 0,
- "question": "string",
- "description": "string",
- "is_anonymous": false,
- "is_multi_select": false,
- "end_time": "string",
- "delete_at": "string",
- "edited_with_results": false,
- "max_votes_per_answer": 1,
- "sent_by_husqy": false,
- "poll_owner_id": "string"
}, - "answers": [
- {
- "id": 0,
- "guild_id": "string",
- "poll_id": "string",
- "answer_text": "string",
- "votes": "string",
- "label": "string",
- "emoji_name": "string",
- "emoji_id": "string",
- "answer_id": 0,
- "description": "string"
}
]
}
}Get the response for Husqy polls module for a guild.
| entry_id required | string (Entry Id) |
| guild_id required | integer (Guild Id) |
{- "data": {
- "entry": {
- "id": 0,
- "guild_id": "string",
- "channel_id": "string",
- "message_id": "string",
- "poll_id": "string",
- "poll_type": 0,
- "poll_buttons_type": 0,
- "question": "string",
- "description": "string",
- "is_anonymous": false,
- "is_multi_select": false,
- "end_time": "string",
- "delete_at": "string",
- "edited_with_results": false,
- "max_votes_per_answer": 1,
- "sent_by_husqy": false,
- "poll_owner_id": "string"
}, - "answers": [
- {
- "id": 0,
- "guild_id": "string",
- "poll_id": "string",
- "answer_text": "string",
- "votes": "string",
- "label": "string",
- "emoji_name": "string",
- "emoji_id": "string",
- "answer_id": 0,
- "description": "string"
}
]
}
}Get the response for Husqy polls module for a guild.
required | Entry Id (string) or Entry Id (null) (Entry Id) |
| guild_id required | integer (Guild Id) |
Question (string) or Question (null) (Question) | |
Description (string) or Description (null) (Description) | |
Max Votes Per Answer (integer) or Max Votes Per Answer (null) (Max Votes Per Answer) | |
Is Multi Select (boolean) or Is Multi Select (null) (Is Multi Select) | |
Is Anonymous (boolean) or Is Anonymous (null) (Is Anonymous) | |
Application Id (integer) or Application Id (null) (Application Id) | |
Token (string) or Token (null) (Token) |
{- "guild_id": 0,
- "question": "string",
- "description": "string",
- "max_votes_per_answer": 0,
- "is_multi_select": true,
- "is_anonymous": true,
- "application_id": 0,
- "token": "string"
}{- "data": {
- "message": "string"
}
}Delete a poll in a guild.
required | Entry Id (string) or Entry Id (null) (Entry Id) |
| guild_id required | integer (Guild Id) |
Application Id (integer) or Application Id (null) (Application Id) | |
Token (string) or Token (null) (Token) |
{- "guild_id": 0,
- "application_id": 0,
- "token": "string"
}{- "data": {
- "entry": {
- "id": 0,
- "guild_id": "string",
- "channel_id": "string",
- "message_id": "string",
- "poll_id": "string",
- "poll_type": 0,
- "poll_buttons_type": 0,
- "question": "string",
- "description": "string",
- "is_anonymous": false,
- "is_multi_select": false,
- "end_time": "string",
- "delete_at": "string",
- "edited_with_results": false,
- "max_votes_per_answer": 1,
- "sent_by_husqy": false,
- "poll_owner_id": "string"
}
}
}Close a poll in a guild.
required | Entry Id (string) or Entry Id (null) (Entry Id) |
| guild_id required | integer (Guild Id) |
Application Id (integer) or Application Id (null) (Application Id) | |
Token (string) or Token (null) (Token) |
{- "guild_id": 0,
- "application_id": 0,
- "token": "string"
}{- "data": {
- "message": "string"
}
}Close a poll in a guild.
| guild_id required | integer (Guild Id) |
| channel_id required | integer (Channel Id) |
| interacted_message_id required | integer (Interacted Message Id) |
{- "guild_id": 0,
- "channel_id": 0,
- "interacted_message_id": 0
}{- "data": {
- "message": "string"
}
}Close a poll in a guild.
| guild_id required | integer (Guild Id) |
Poll Id (string) or Poll Id (null) (Poll Id) | |
| channel_id required | integer (Channel Id) |
Message Id (integer) or Message Id (null) (Message Id) | |
| interacted_message_id required | integer (Interacted Message Id) |
| action required | string (Action) |
Answer Id (integer) or Answer Id (null) (Answer Id) | |
Emoji Id (integer) or Emoji Id (null) (Emoji Id) | |
Emoji Name (string) or Emoji Name (null) (Emoji Name) | |
Application Id (integer) or Application Id (null) (Application Id) | |
Token (string) or Token (null) (Token) |
{- "guild_id": 0,
- "poll_id": "string",
- "channel_id": 0,
- "message_id": 0,
- "interacted_message_id": 0,
- "action": "string",
- "answer_id": 0,
- "emoji_id": 0,
- "emoji_name": "string",
- "application_id": 0,
- "token": "string"
}{- "data": {
- "message": "string"
}
}Get user entries.
| guild_id required | integer (Guild Id) |
| privacy_member_id required | integer (Privacy Member Id) |
{- "data": {
- "username": 0,
- "display_name": 0,
- "global_name": 0,
- "nickname": 0,
- "id": 0
}
}Delete user entries.
| guild_id required | integer (Guild Id) |
| privacy_member_id required | integer (Privacy Member Id) |
{- "data": {
- "message": "string"
}
}