Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 1.19 KB

updatepin.md

File metadata and controls

21 lines (17 loc) · 1.19 KB

About $updatepin

This command lets the student to update a pinned message with a new link from the discord channel to their private pinning board.

Location of Code

The code that implements the above mentioned gits functionality is located here.

Code Description

Functions

updatePinnedMessage(self, ctx, tagname: str, *, description: str):
This function takes as arguments the values provided by the constructor through self, context in which the command was called, tagname of the old pinned message, and the new description given by the student.

How to run it? (Small Example)

Let's say that you are in the server that has the Classmate Bot active and online. All you have to do is enter the command 'updatepin' and pass in the tagname and new description of the message.

$updatepin TAGNAME DESCRIPTION
$updatepin HW https://discordapp.com/channels/139565116151562240/139565116151562240/890814489480531969 HW8 reminder

Successful execution of this command will update the description of the pinned message.

image