Joel’s Discord bot update

1. Feed local SSE with data
notion image
2. Dummy data with real channel id
{
  "data": {
    "_id": "123456",
	"title": "Pick one",
	"channel_id": "854401837566001192",
	"poll_options": [{
			"id": "1",
			"Name": "Tom Cruise"
		},
		{
			"id": "2",
			"Name": "Maria Sharapova"
		},
		{
			"id": "3",
			"Name": "Robert Downey Jr."
		}
	],
	"allow_options_for_anyone": true,
	"single_vote": true,
	"end_time": "2022-04-01",
	"description": "some description of poll",
	"role_restrictions": ["admin", "bot", "level1", "guest"],
	"author_user_id": "Joel"
  }
}
3.Tested on my test server
notion image
4.Tested on Garage server
notion image
5. Got error on Garage server
wip:Contacted nonsence for help
/opt/governator-bot/node_modules/discord.js/src/rest/RequestHandler.js:350
      throw new DiscordAPIError(data, res.status, request);
            ^

DiscordAPIError: Missing Permissions
    at RequestHandler.execute (/opt/governator-bot/node_modules/discord.js/src/rest/RequestHandler.js:350:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async RequestHandler.push (/opt/governator-bot/node_modules/discord.js/src/rest/RequestHandler.js:51:14)
    at async ReactionUserManager.remove (/opt/governator-bot/node_modules/discord.js/src/managers/ReactionUserManager.js:64:5) {
  method: 'delete',
  path: '/channels/854401837566001192/messages/957359361259368598/reactions/%F0%9F%87%A8/419673520973414411',
  code: 50013,
  httpStatus: 403,
  requestData: { json: undefined, files: [] }
}
error Command failed with exit code 1.
6. Latest commit on github

Joel’s Discord bot update

1. Feed local SSE with data
notion image
2. Dummy data with real channel id
{
  "data": {
    "_id": "123456",
	"title": "Pick one",
	"channel_id": "854401837566001192",
	"poll_options": [{
			"id": "1",
			"Name": "Tom Cruise"
		},
		{
			"id": "2",
			"Name": "Maria Sharapova"
		},
		{
			"id": "3",
			"Name": "Robert Downey Jr."
		}
	],
	"allow_options_for_anyone": true,
	"single_vote": true,
	"end_time": "2022-04-01",
	"description": "some description of poll",
	"role_restrictions": ["admin", "bot", "level1", "guest"],
	"author_user_id": "Joel"
  }
}
3.Tested on my test server
notion image
4.Tested on Garage server
notion image
5. Got error on Garage server
wip:Contacted nonsence for help
/opt/governator-bot/node_modules/discord.js/src/rest/RequestHandler.js:350
      throw new DiscordAPIError(data, res.status, request);
            ^

DiscordAPIError: Missing Permissions
    at RequestHandler.execute (/opt/governator-bot/node_modules/discord.js/src/rest/RequestHandler.js:350:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async RequestHandler.push (/opt/governator-bot/node_modules/discord.js/src/rest/RequestHandler.js:51:14)
    at async ReactionUserManager.remove (/opt/governator-bot/node_modules/discord.js/src/managers/ReactionUserManager.js:64:5) {
  method: 'delete',
  path: '/channels/854401837566001192/messages/957359361259368598/reactions/%F0%9F%87%A8/419673520973414411',
  code: 50013,
  httpStatus: 403,
  requestData: { json: undefined, files: [] }
}
error Command failed with exit code 1.
6. Latest commit on github